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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set a MS Access Report Recordsource from a script

Status
Not open for further replies.

Malc8179

MIS
Oct 8, 2007
28
GB

Hi Guys

im trying to change a reports recordsource from a bit of code

im using
Reports!GND37R01.RecordSource = "qrygnd37r01"

and i get a runtime error 2451

any thoughts
 
have you tried

me.RecordSource = "qrygnd37r01"

just a thought

Hope this is of use, Rob.[yoda]
 
i was close it should be like

me.RecordSource = "SELECT * FROM [qrygnd37r01]"

should work.

Hope this is of use, Rob.[yoda]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top