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

Code for string=string

Status
Not open for further replies.

millrat

Technical User
Joined
Dec 23, 2003
Messages
98
Location
US
Previously my code to preview a report was
DoCmd.OpenReport "Report Sheet", acViewPreview, , "Sheet.[Sheet No] = " & Me.txtSheetNo
This worked fine while Sheet.[Sheet No]=1 and Me.txtSheetNo=1 (both integer)
I have since changed the integers to text string ie Sheet.[Sheet No]=01CR01 and Me.txtSheetNo=01CR01
What do I need to add to make this work?
Thanks for your help
millrat
 
"Sheet.[Sheet No] = '" & Me.txtSheetNo & "'"
 
Thank you very BIG
millrat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top