The Code Cage - Microsoft Office help Free Microsoft Office Help for all Applications!  

To stop seeing these ads and get other benefits check This page!

Go Back   The Code Cage Forums > Newsgroups - Microsoft Topics > Newsgroup - Access Forum > Access VBA Programming


Access VBA Programming Post questions in this forum if they are related to using Microsoft Access VBA Programming, Macro's etc.

Hey there!

It looks like you're enjoying but haven't created an account yet. Why not take a minute to register for your own free account now? As a member you get free access to all of our forums and posts plus the ability to post your own messages, communicate directly with other members and much more. Register now!

Already a member? Login at the top of this page to stop seeing this message.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 16th June 2009, 04:04 PM
Junior Member
MS Office Version: MS Office 2003
MS Office Skill Level: Some VBA experience


My Top Tip Count: 0

 
Join Date: Apr 2009
Location: Las Vegas, USA
Posts: 8
Thanks to others: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
KrimerJ is on a distinguished road
USA
Default Using VBA and recordset's I need to update 3 relational master tables

------ Register to get rid of these "In Post" ads! ------


Using VBA and recordset's or queries, I need to update 3 related master tables from 3 unrelated temp tables. Can someone please show me how.
I 've been away from Access for some time and appreciate your input. I have 3 tables a main with (CAMERAID), 2nd table TESTS with (TESTID, and foreign with CAMERAID) and 3rd table TESTS_RESULTS with(TEST_RESULTSID, and foreign with TESTID for multiple records in the TEST_RESULTS table.

I created the three temp tables from DoCmd Spreadsheet for the Excel workbook containing the original data.

Below are the 3 table structures:

Cameras Table:
CameraID primary/autonumber
Barcode
Vendor
Model
Type
Video Format
Imager
Band
Voltage
Comments
PicturePath
Seq

Tests Table:
TestID primary/autonumber
CameraID
other field
other field
other field
other field

Tests_Results Table:
Tests_ResultsID primary/autonumber
TestID
other field
other field
other field

I have tried an append query for one of the three tables (Cameras) and get the following error:

Camera database can't append all records in the append query.
Camera database set 0 field(s) to Null due to a type conversion failure, and it didn't add 1 record(s) to the table due to key violations, 0 record(s) due to lock viloations, and 0 record(s) due to validataion rule violations.
Reply to this post


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!
  #2 (permalink)  
Old 17th June 2009, 03:36 PM
Junior Member
MS Office Version: MS Office 2003
MS Office Skill Level: Some VBA experience


My Top Tip Count: 0

 
Join Date: Apr 2009
Location: Las Vegas, USA
Posts: 8
Thanks to others: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
KrimerJ is on a distinguished road
USA
Default Re: Using VBA and recordset's I need to update 3 relational master tables

------ Register to get rid of these "In Post" ads! ------


I have overcome the error and successfully append data into the main table (Cameras). Can someone show me, using ADO/recordset to to automate the append process and apply the Camera's primary/key to the second table Tests as a foreign key. Please help someone. Thank you.
Reply to this post


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!
Reply

Bookmarks

Tags
master, recordset, relational, tables, update, vba

New topics in Access VBA Programming


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

The Code Cage Affilliates


To stop seeing these ads and get other benefits check This page!



All times are GMT +1. The time now is 02:08 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2
No part of this board may be copied or reproduced either in part or full without the express permission of The Code Cage Team.
We are not associated with nor employed by Microsoft in any way, we simply provide resources!
All MS office icons are registered trademarks of the application the represent