Simple lookup - prefill field with data in another field in same query

  • Thread starter Thread starter James
  • Start date Start date
J

James

I have created a simple database

tblCustomer

AccountNo
Name
InvAddress1
InvAddress2

tblInventory

AccountNo
Product
ShippingAddress1
ShippingAddress2


I have a qry to connect both tables together, and a form bound to the query

The form lookups the customer name and invoice address from the account
number - however I want the form to prefill the ShippingAddress1, and
ShippingAdress2 with the details from the InvAddress (and overwritten if
nessesary). This should be a simple lookup/default value but I can not work
out how to acheive this?

Can anyone help?
 
I am guessing you have a combo box pulling the customer information. Just
put this code in the after update event:

Me!ShippingAddress1 = Me!InvAddress1
Me!ShippingAddress2 = Me!InvAddress2
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top