PC Review


Reply
Thread Tools Rate Thread

Can't open subform for Data Entry

 
 
Leslie
Guest
Posts: n/a
 
      10th Sep 2003
I have a tab control with a a sub form which has a
one-to-many relationship (one record on the tab control,
many potential records on the sub form linked by an invoice
number). I have used this configuration for adding records
on other projects before with no problems viewing the first
available record on the sub form, and it was always
succesful, but in this project I can't seem to get the form
to open with the subform data entry page viewable. I think
that the main difference between the projects is that now I
am trying to connect the records using a primary key that
is being generated through code in the AfterUpdate event of
the first data entry field (previously the primary key was
always generted by Access using an autonumber field). It
is not possible to use an autonumber method now because the
majority of the data is imported into the database using
number sequences I have little control over (but some new
records need to be entered manually, with unique invoice
numbers). I have tried numerous times to set the
properties on the subform to AllowEdits = Yes,
AllowDeletions = No, AllowAdditions = Yes, Data Entry = No,
and I can view the subform if I set those properties at
runtime, but every time I close the main form and re-open
it I find all of those settings have reverted to = NO. I
have tried passing the invoice number to the sub form as
soon as it is generated in the main form, but it appears
that the sub form can not accept the data from the main
form. How can I set the sub form so that it is viewable
for data entry as soon as the main form is opened (or as
soon as the main form has a new invoice number)?
Thanks in advance.
Leslie
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
form/subform-require at least 1 new subform record at data entry jyow32 Microsoft Access 1 2nd May 2009 03:53 AM
Open new record subform for data entry =?Utf-8?B?TGluIExpZ2h0?= Microsoft Access Forms 11 22nd Jun 2006 09:44 AM
Open another form based on entry in a subform =?Utf-8?B?SnVsaWEgVUs=?= Microsoft Access Forms 1 23rd Jan 2006 04:56 PM
Having subform show last entry on open =?Utf-8?B?SmFzb24=?= Microsoft Access Forms 4 8th Nov 2005 05:37 PM
Data Entry on a SubForm and Listed on other Subform Sohaib via AccessMonster.com Microsoft Access Forms 0 27th Sep 2005 05:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:53 AM.