Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically add new record, enter value, then close

Status
Not open for further replies.

Accesser

Technical User
Jun 3, 2002
44
0
0
US
Hi there,

I have a main form in which I'll place a combo box or option group, and upon a user's selection, some code will open up a table or another form, add a new record, enter a value, then close---all while being transparent or invisible to a user working on the main form.

This sounds wierd, I know, but it's what I need to do. Would you happen to know how to approach or code this? Is it possible to auto populate an 'closed' table? Thanks much,

Eric
 
You could add the new record with an append query, without opening another form. However to do what you wanted you would take the following steps:

open the form
run the append query
goto last record
close the form

this will do what you want but, from a database point of view it is unneccesary all you need to do is run the append query.

HTH
Rich Lead Developer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top