Import data from a form to a table

face2face

New member
Local time
Today, 11:07
Joined
Nov 22, 2006
Messages
1
Hi guys,
I´m a unexperienced user of access and it´s my first post in this forum. Hope to make myself clear.

I have several tables. My problem is rather simple but I didn´t find out to solve it. I searched on the forum but didn´t find it. I might not have the appropriate vocabulary yet to perform an efficient search.

My problem is that I have a form to fill a sales table (Salg). For each entry I need to fill the postnumber and the location. On another table (Poststed) is registered the Postnumber and the location name. On the form I did a combobox to get the post numbers. Then to get the location, In another box, which should come automatically after the "Postnr" has been selected, it should display the "location name". I did a "DLOOKUP" for that:

=DLookUp("[Poststed]";"Postnummer";"[Postnr] ='" & Skjemaer!Salg!Postnr & "'")

and it works fine. The name come automatically.
However, when I validate the "post" then all the data in the boxes are register in the destination table, but not the "location nam". It seems it is not bound to the table because the DLOOKUP function is in the source field.
Does anybody knows how I can bound it to the table.
Or if I should use another way to do the task, I´m open to any suggetions.
I hope I made myself clear enough.

Thanks for taking the time reading my post

Frederik
 
Would this work for you?

How about using a command button on your form that activates an append query to saves your data to the table? I did this with a subform.
 

Users who are viewing this thread

Back
Top Bottom