Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create recordset from recordsource?

Status
Not open for further replies.

RSGB

Technical User
Feb 14, 2001
45
0
0
GB
Hi

I have a question I can hope you can help me with...

I have a reusable form and want to create a recordset based on the form's recordsource which contains distinct values in one of the fields.

So I guesss something like:

mySQL = "Select distinctrow JobNumber from " & myForm.recordsource
set myRST = currentdb.openrecordset (mySQL)

Any thoughts on where I'm going wrong?

Cheers

RSGB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top