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

coping data from one table to another

Status
Not open for further replies.

biscuitboy

Technical User
Dec 11, 2004
22
0
0
GB
Hiya

I have two tables in my database. One is called Data and one is called userdetails. These tables contain different information. What I would like to be able to do is when the user hits the button the information in the "Username" coloumn in the userdetails table to be copied and pasted into the "username" field in the data table.

I have tried running update queries but without success and so was wondering if anyone knew of a macro or vba code I could use.

Best Regards

 
You may consider the DLookUp function.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top