Re: Linking Tabs
- From: Bill <Bill@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 28 Sep 2008 12:19:01 -0700
Thanks Tina. I'm a novice user that has built a DB for my own use. I'm sure
I will continue to screw up the vocab as I go. :-)
This form is used to gather facts about an incident (much like a police
report). The form takes in a lot of information including a narrative and
places it into the table. The table is large and has several columns
(probably about 40 or so). I used the tabs to break out the sections of the
report to complete just to make it easier for the user. Then I have a PDF
print command that I use to print the report. It was working just fine, then
I added a text + number autonumber field using a script and I think I changed
a field. Now when the user complete the tabs, each tab creates a new line
item in the table as the autonumber field is set to allow duplicates. If I
change it to not allowing duplicates, the form does not let the user enter
anything into any of the tabs.
I hope this helps a littel more.
Thx
Bill
"tina" wrote:
a tabpage in a tab control can't be "linked" to a table. a form also isn't.
"linked" to a table; it can be *bound* to a table or query, by putting the
table or query name in the form's RecordSource property - or it can be an
unbound form, with nothing in the RecordSource property. (and no, i'm not
picking nits over word usage; "linking" has very specific meanings in
Access, depending on the context it's used in, so using it in the wrong
context can cause a lot of confusion.)
from your description, it sounds like you have the mainform bound to the
same table that all of the subforms are bound to. my first question is: why
have you bound the same table to a form and its' multiple subforms? if we
understand what you're trying to accomplish, someone may be able to offer a
better alternative setup.
hth
"Bill" <Bill@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:51001DB9-9013-458F-A72C-4A8248900533@xxxxxxxxxxxxxxxx
Ok. So I have a form with 7 tabs. The way I designed this was that eachtab
contains a form all linked to the same table (datalink). When I input onthe
header and then clink to the first tab all is fine. When I click to the2nd
tab I get the error "The changes you requested to the table were notprimary
successful because they would create duplicate values in teh index,
key, or relationship. Change the data in teh field or fields that contactcreate
duplicate data, remove the index or redefine the index to permit duplicate
entries and try again".
The sub forms are all linked thru a field called "ReportID". This is a
unique field which is bases on a text and autonumber to generate a number
format of 08-001 etc. All the tabs must be linked to the reportid to
a single report. If I allow duplicates I get many entries on my datalink
table and they do not all come together. Very strange and I really need
help. Thx.
- Follow-Ups:
- Re: Linking Tabs
- From: tina
- Re: Linking Tabs
- References:
- Linking Tabs
- From: Bill
- Re: Linking Tabs
- From: tina
- Linking Tabs
- Prev by Date: Re: Subforms with two criteria
- Next by Date: Open a report to specific data
- Previous by thread: Re: Linking Tabs
- Next by thread: Re: Linking Tabs
- Index(es):
Relevant Pages
|