PC Review


Reply
Thread Tools Rate Thread

adding a new record from a combo box

 
 
Bro C.
Guest
Posts: n/a
 
      22nd Dec 2006
Hi everyone!

I have 2 forms "1stform and 2ndform" I Have a problem requering the
1stform.on the first form a have a combobox that allows me to add a
new record if not on list, when the record is not on list it opens the
2ndform when im finish entering thae new record, it does not show up in
the first form unless i get out of the first form completely and go
back in again, is there a way to have the first form requery when i'm
done entering the new record in the send form


thanks in advance for your help

 
Reply With Quote
 
 
 
 
Larry Linson
Guest
Posts: n/a
 
      22nd Dec 2006
If you use a popup dialog form as the form opened to do the actual data
entry, it will stop code execution until it is finished. So, you can put
your Me.<comboboxname>.Requery as the very next instruction. If you want to
locate the combo to the record just added, save the information prior to
going to the dialog, or store it back into a control on the original form
from the dialog.

Larry Linson
Microsoft Access MVP

"Bro C." <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi everyone!
>
> I have 2 forms "1stform and 2ndform" I Have a problem requering the
> 1stform.on the first form a have a combobox that allows me to add a
> new record if not on list, when the record is not on list it opens the
> 2ndform when im finish entering thae new record, it does not show up in
> the first form unless i get out of the first form completely and go
> back in again, is there a way to have the first form requery when i'm
> done entering the new record in the send form
>
>
> thanks in advance for your help
>



 
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
Adding new record in form/not pulling from combo Brianne Microsoft Access Forms 6 13th Aug 2009 10:46 PM
While adding a new record the name does not show from a combo list newataccess Microsoft Access 1 10th Oct 2008 12:43 PM
Combo drop down box won't work after adding new record Craig Microsoft Access VBA Modules 0 22nd Mar 2008 03:30 PM
Requery a Combo Box After adding New Record To Its Source Row =?Utf-8?B?RHJvZHdheQ==?= Microsoft Access Forms 3 19th Sep 2007 01:43 PM
adding record to combo box =?Utf-8?B?cmVkRnJlZA==?= Microsoft Access Getting Started 12 14th Sep 2007 07:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:04 AM.