Forum Discussion

Tony2021's avatar
Tony2021
Steel Contributor
Jan 03, 2022

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...
  • George_Hepworth's avatar
    Jan 03, 2022

    Tony2021 


    Try this and let us know if it is successful or not.

     

    DoCmd.OpenReport "rptPC", acViewReport, , "[DDNo]= """ & Replace(Me.txtDrawNo, "DD","") & """"

Resources