|
-
Aug 23rd, 2000, 02:06 PM
#1
Thread Starter
Member
Hello everyone i have a simple question (I think)
anyways i have an access database that has one 3 tables and 1 query. Now i know how to in DAO to open a table using "Set rs1 = db.OpenRecordset(strRSName1, dbOpenTable)"
as an example but is there any way to open a query? I thought it would be similiar like "Set rs1 = db.OpenRecordset(strRSName1, dbOpenQuery)"
Does this make sense? Thanks for any help
-
Aug 23rd, 2000, 02:10 PM
#2
Monday Morning Lunatic
Use:
Code:
Set rst = MyDB.OpenRecordset("SELECT * FROM MyTable", dbOpenSnapshot)
to open a SQL query.
To open a set query:
Code:
Set rst = MyDB.QueryDefs(0).OpenRecordset
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 23rd, 2000, 02:16 PM
#3
_______
<?>
using a datacontrol.
Dim Sql as String
Sql = "Select * from your table"
Data1.Recordsource = Sql
Data1.Refresh
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Aug 23rd, 2000, 02:19 PM
#4
Fanatic Member
Structured Query Language is VERY hot!
-
Aug 23rd, 2000, 02:23 PM
#5
Monday Morning Lunatic
Yeah...probably the easiest to use 'Standard Interface' to anything in the Universe...
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|