Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
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 December 6th, 2004, 01:29 AM
Authorized User
 
Join Date: Apr 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default Connection and updating records

Hi All

Here's my problem:
I have table A with fields: PO, PART, QTY, ID
Table B consists of: PART, QTY, ID
In table A, ID is blank and I'd like to update the record with ID from table B. In table B ID is a unique number.

The relationship between the 2 tables is one-to-many on the PART field with table A on the one side.

What I want to do is for each record in table A insert into the ID field, the lowest ID from table B where field PART is same and if QTY
for ID in table B is less than QTY in Table A, insert another line but with the next available ID from table B.

This is a frontend backend project with Ms Access as frontend and MySQL backend.
Anyone got an idea of how to achieve this?

Cheers / Fred






Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in updating records & finding records naveed77 VB Databases Basics 1 January 16th, 2007 12:12 PM
problem in updating records & finding records naveed77 VB How-To 1 January 16th, 2007 12:10 PM
Updating Records marmer Classic ASP Databases 1 August 23rd, 2003 11:12 AM
Updating records bspradeep Classic ASP Databases 0 August 20th, 2003 09:27 AM
Updating records help bspradeep Classic ASP Databases 0 July 7th, 2003 10:51 PM





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