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 VBA
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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 December 6th, 2004, 01:29 AM
Authorized User
 
Join Date: Apr 2004
Location: , , .
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

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
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



All times are GMT -4. The time now is 12:09 AM.


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