Forum Discussion
Tony2021
Jan 03, 2022Steel Contributor
Open Report (strip out letters for Where clause)
Hello Experts, I have the following OpenReport code: DoCmd.OpenReport "rptPC", acViewReport, , "[DDNo]= " & Me.txtDrawNo I need to modify it since [DDNo] is not a number...it's text. There is...
- Jan 03, 2022
Try this and let us know if it is successful or not.DoCmd.OpenReport "rptPC", acViewReport, , "[DDNo]= """ & Replace(Me.txtDrawNo, "DD","") & """"
George_Hepworth
Jan 03, 2022Silver Contributor
Try this and let us know if it is successful or not.
DoCmd.OpenReport "rptPC", acViewReport, , "[DDNo]= """ & Replace(Me.txtDrawNo, "DD","") & """"
- Tony2021Jan 03, 2022Steel Contributorperfect. thank you very much.