PC Review


Reply
Thread Tools Rate Thread

Add/Edit Tabbed Form

 
 
Apprentice
Guest
Posts: n/a
 
      22nd Oct 2008
I have multiple input forms in a tabbed main form. I'm trying to give the
user an option to Add New Records - or - Edit existing records based on two
different command buttons.

I have the main form set up properly with Master and Child Fields so that as
you move from one tab to the next the same primary field "Charter_ID" is
referenced and the corresponding records within each table are recognized.

I have also set the "On Current" event of each form to: "setvalue" for the
primary field "Charter_ID" from the main form.

When I have the "Data Entry" set to Yes on all of the forms, everything
works great. When I want the user to open in Edit mode, I will change the
"Data Entry" setting to NO.

So far this works fairly well....... The Form opens and all the records are
shown, and the can be scrolled through using the navigation buttons etc. But
when you move from the main form to the next tab.... the primary field
"Charter_ID", That was on the main form is not displayed in the next forms.
You have to scroll to that record again.

Once the record is found in the main form "1st Tab", the rest of the forms
should also show that record based on the Child/Master relationship of that
field.

Hope I made sense here. Any ideas?
--
Your guidance is greatly appreciated!
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      23rd Oct 2008
Don't assign the Charter_ID in the form's Current event.
Access will do this for you automatically.

When you assign a value to a bound control in Form_Current, you are dirtying
the record. That means Access has to save it again, every time you visit any
record. It's really not something you want to trigger.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Apprentice" <(E-Mail Removed)> wrote in message
news:C4CFC908-C5BC-4DFD-B11F-(E-Mail Removed)...
>I have multiple input forms in a tabbed main form. I'm trying to give the
> user an option to Add New Records - or - Edit existing records based on
> two
> different command buttons.
>
> I have the main form set up properly with Master and Child Fields so that
> as
> you move from one tab to the next the same primary field "Charter_ID" is
> referenced and the corresponding records within each table are recognized.
>
> I have also set the "On Current" event of each form to: "setvalue" for the
> primary field "Charter_ID" from the main form.
>
> When I have the "Data Entry" set to Yes on all of the forms, everything
> works great. When I want the user to open in Edit mode, I will change the
> "Data Entry" setting to NO.
>
> So far this works fairly well....... The Form opens and all the records
> are
> shown, and the can be scrolled through using the navigation buttons etc.
> But
> when you move from the main form to the next tab.... the primary field
> "Charter_ID", That was on the main form is not displayed in the next
> forms.
> You have to scroll to that record again.
>
> Once the record is found in the main form "1st Tab", the rest of the forms
> should also show that record based on the Child/Master relationship of
> that
> field.
>
> Hope I made sense here. Any ideas?
> --
> Your guidance is greatly appreciated!


 
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
Split Form (Access 2007) doesn't show on a tabbed form?... efandango Microsoft Access Forms 2 30th Apr 2008 01:04 PM
Edit Tabbed Forms Kevin Microsoft Access Forms 1 17th Mar 2008 02:08 PM
Tabbed form: Updating main form from subform. =?Utf-8?B?Q2hyaXM=?= Microsoft Access Forms 0 17th Jul 2007 12:58 PM
Tabbed Form (Main Form/Sub Form) multi-Table Problem =?Utf-8?B?Um9iZXJ0IE51c3ogQCBEUFM=?= Microsoft Access Forms 0 16th Sep 2005 04:42 PM
tabbed form within tabbed form, how refer to controls ? =?Utf-8?B?ZGF2aWQ=?= Microsoft Access Form Coding 1 5th Apr 2004 11:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:39 PM.