A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

SQL and VBA



 
 
Thread Tools Display Modes
  #1  
Old July 15th, 2004, 07:23 PM
external usenet poster
 
Posts: n/a
Default SQL and VBA

I come from a DB2 SQL background. Using Access is new to me.
In VBA using SQL how do you grab multiple records into a
table????? i.e...define a cursor and fetch, as in DB2??
Have looked in many books but cannot figure out.
Any info leading me in right direction appreciated.

Thanks
  #2  
Old July 15th, 2004, 08:03 PM
Chris Nebinger
external usenet poster
 
Posts: n/a
Default SQL and VBA

You need to use ADO or DAO to open a recordset to grab the
data. Then you can use the cursor to scroll through the
recordset in code. Look for either ADO or DAO under MSDN,
or better yet, pick up a Access book, or even VB book.

Access Developer's Handbook is probably the best.


Chris Nebinger


-----Original Message-----
I come from a DB2 SQL background. Using Access is new to

me.
In VBA using SQL how do you grab multiple records into a
table????? i.e...define a cursor and fetch, as in DB2??
Have looked in many books but cannot figure out.
Any info leading me in right direction appreciated.

Thanks
.

  #3  
Old July 15th, 2004, 08:20 PM
external usenet poster
 
Posts: n/a
Default SQL and VBA

ok...thanks... actually have 3 access programming books,
but still could not figure it out...
Now I know what to read up on..


-----Original Message-----
You need to use ADO or DAO to open a recordset to grab the
data. Then you can use the cursor to scroll through the
recordset in code. Look for either ADO or DAO under MSDN,
or better yet, pick up a Access book, or even VB book.

Access Developer's Handbook is probably the best.


Chris Nebinger


-----Original Message-----
I come from a DB2 SQL background. Using Access is new to

me.
In VBA using SQL how do you grab multiple records into a
table????? i.e...define a cursor and fetch, as in DB2??
Have looked in many books but cannot figure out.
Any info leading me in right direction appreciated.

Thanks
.

.

 




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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:06 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.