businessman
Registered User.
- Local time
- Today, 00:15
- Joined
- Jun 19, 2006
- Messages
- 79
Can i edit a query to equal a SQL string just like i do for my reports? for my reports i say:
i tried to say
i get an error in the middle line...how do i do what i'm trying to do?
Code:
DoCmd.OpenReport "Check Filter", acViewDesign, , , acHidden
Reports![Check Filter].RecordSource = strRecordSource
DoCmd.Close acReport, "Check Filter", acSaveYes
i tried to say
Code:
DoCmd.OpenQuery "Query1", acViewDesign, acEdit
Queries![Query1].RecordSource = strRecordSource
DoCmd.Close acQuery, "Query1", acSaveYes
i get an error in the middle line...how do i do what i'm trying to do?