Wrox Programmer Forums
|
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 November 28th, 2004, 06:47 PM
Authorized User
 
Join Date: Apr 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default Do Loop and SQL

Hi all

I'm struggling with VBA at this stage.
I've got Access as frontend and MySQL as backend trying to do the following.
I have a table with fields such as part# and order#.
What I want to do is for each row with the same order# (approx 100 records)I'd like to run an update query on a 3rd field, using the part# field as criteria in my update query.
My problem is understanding the Do Loop function and also connection properties.

So far I've only used VBA to run action queries and some easier code but I'm stuck at this one.

Any help would be greatly appreciated.

Cheers / Fred






Similar Threads
Thread Thread Starter Forum Replies Last Post
T-SQL Update Loop Gyto SQL Language 3 February 2nd, 2007 05:52 AM
ASP dynamic SQL query with for loop? hman Classic ASP Databases 3 December 13th, 2006 08:56 PM
For loop in SQL SERVER 2000 Asish SQL Server 2000 2 May 13th, 2004 04:25 AM
nested while loop doesn't loop hosefo81 PHP Databases 5 November 12th, 2003 08:46 AM





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