Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access 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 April 10th, 2008, 11:35 AM
Registered User
Join Date: Mar 2008
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
Default populating table from a subform based on a query

Hello all. I am currently working on a form frmContact which includes a subform. The subform is based on a query and reflects records associated to the main form based on the ContactID.

The main form allows the user to enter information based on contacts made with customers. The user enters such information as date of contact, time of contact, and there is also a remarks field which is a memo data type.

There is a Contact Table which is populated using the user data from the main form.

I have created a Save Button and an On Click event on the form. With the on click of save an event procedure adds the new record to the Contacts Table by first opening a recordset and using the .AddNew method. All the fields seem to be adding properly to the table.

I cannot figure out how to populate the multivalue field in the Contacts Table with the data in the subform. Can anyone help me to figure out how to populate the Contacts Table multifield value using the .AddNew method and pointing the multivalue field at the subform on the main Contacts form?

I am pulling my hair out. I've tried everything I can think of and I'm sure it is a simple solution... ugh!

Old April 11th, 2008, 06:35 AM
Friend of Wrox
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts

What is the table structure? I don't understand what the "multivalue field in the Contacts Table" is, or the "data in the subform" and how they are related.


Look it up at: http://wrox.books24x7.com

Similar Threads
Thread Thread Starter Forum Replies Last Post
Populating combo based on first one creative_eye PHP How-To 0 June 30th, 2006 10:30 AM
A form field list populating based on another fiel ebburks Access 2 June 3rd, 2006 09:37 AM
subform based on a query Vince_421 Access VBA 2 May 10th, 2006 04:38 AM
Urgent!! code for no match in Subform based query smercer Access 3 September 10th, 2004 11:15 PM
Filter Subform B Based on Field in Subform A SerranoG Access VBA 3 June 18th, 2004 12:23 AM

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