Mailing Address and Street Address

  • Thread starter Thread starter kuben
  • Start date Start date
K

kuben

Hi

How do I create a button that when pressed will copy the mailing
address info into street address. Some clients have the same address
details.

Thanks

Kuben
South Africa
 
Hi

How do I create a button that when pressed will copy the mailing
address info into street address. Some clients have the same address
details.

Thanks

Kuben
South Africa

Use a button to run an update query. Be sure to filter the query to
just the current record.
 
Hi

How do I create a button that when pressed will copy the mailing
address info into street address. Some clients have the same address
details.

On a Form? a Table datasheet? or where?

Assuming that you are (as you should be) using a Form to do your data
entry, and that you have textboxes named txtMailingAddress,
txtMailingCity, txtMailingPostcode; and txtStreetAddress,
txtStreetCity and txtStreetPostcode, use code like

Private Sub cmdDupAddress_Click()
Me!txtStreetAddress = Me!txtMailingAddress
Me!txtStreetCity = Me!txtMailingCity
Me!txtStreetPostcode = Me!txtMailingPostcode
End Sub

John W. Vinson[MVP]
 

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