Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 10th, 2008, 11:35 AM
Registered User
 
Join Date: Mar 2008
Location: , , .
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!

Reply With Quote
  #2 (permalink)  
Old April 11th, 2008, 06:35 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

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.

mmcdonal

Look it up at: http://wrox.books24x7.com
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:44 PM.


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