Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 18th, 2006, 06:15 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

So you want to copy the phone number from one table to another. Can you tell me the combo box name, and the table and field names involved? Then we can do something with DAO or ADO depending on your needs.



mmcdonal
 
Old May 19th, 2006, 04:32 AM
Friend of Wrox
 
Join Date: Apr 2006
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The first table's name is 'tblAfdelingenOpvTT'. This table includes the 'Naam afdeling' (=department) and 'Standaard telefoonnummer' (=phone number) fields.

The second table is called 'tblOpvTT' and has the fields 'Volgnummer' (=autonumber), 'Datum' (=Date), 'Naam afdeling' (=department), 'Naam personeelslid' (=name of a coworker) and 'Telefoonnummer' (=phone number field).

The form I'm using to insert the data is called 'frmOpvBijkomendeTT' and has the same fields as the table 'tblOpvTT' except for the 'Volgnummer' field that I did not include on the form.

I have build a subform on this form based on your idea that is called 'frmSubformAfdelingenOpvTT' and this one includes the fields 'Naam afdeling' (=department) and 'Standaard telefoonnummer' (=phone number).

Do you have all the data you need or do you need some more info? If I get it wright the phone number should be 'looked up' with a Naam_afdeling_after_update event.

Thanks again for trying to help me here...

 
Old May 19th, 2006, 06:29 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Can you email me directly, and possibly send me the database if it doesn't have any sensitive data? Or a blank copy with no data? There has been alot posted and I will need some time to review this, possibly on Sunday (US, East Coast).

Will that work?

mmcdonal
 
Old May 19th, 2006, 06:59 AM
Friend of Wrox
 
Join Date: Apr 2006
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm ok with that.

could you then give me your email? Or where can I find it?

 
Old May 19th, 2006, 07:27 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Yes, look at my profile and click "Click to send email."

mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Incorporating lookup function in macro mikelever Excel VBA 12 November 13th, 2007 01:25 PM
LookUp and Hyperlink frankjuel Excel VBA 1 January 12th, 2007 03:03 AM
lookup using VB karebear VB How-To 1 August 2nd, 2006 04:32 PM
Lookup Tables mossimo Access 4 December 5th, 2003 11:27 AM
File name lookup acdsky Classic ASP Basics 3 November 22nd, 2003 11:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.