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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing a text file and then going to the imported record

Status
Not open for further replies.

momon

Vendor
May 22, 2002
42
CA
I have a switchboard that displays several buttons.
One of the buttons is Import. When that button is clicked, it performs a macro which imports one record into the table WSPECS from a text file.

Now, on the main switchboard, there are two fields bound to WSPECS: QUOTE NUMBER and ITEM NUMBER.

My Question: How would I make these two fields display the QUOTE NUMBER and ITEM NUMBER of the record just imported from the text file? Currently, the fields just display the first record in the table WSPECS.


Thanks in advance.
 
You can change the import button to import the record twice...once to the main table and then once to a temporary table, upon which this form is based.

That way, you see only the one form.

If you don't need to modify this record or do any updates to other tables while this form is open it's a quick solution.

Each time you can delete the records from the temporary table, or you can have the import do a MAKE TABLE query of a specific name each time. Only thing is that if you do this you have to set Access's options to not CONFIRM the action query.

Hope this helps.

Jim "Get it right the first time, that's the main thing..." [wavey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top