Hi, How do you run a command created from a string?
I have:
Dim txtString, txtDate As String
Me.calDate1.Value = Now()
txtDate = Me.calDate1.Value
txtString = Me.txtFormName & Me.txtDateField & " = #" & txtDate & "#"
This produces: forms!iInstFrmAnalogDCS.iInstFrmAnalogDCSSub.Form.txtPerfDate = #3/8/2007#
- which is what I want.
How do I run this? - DoCmd.Run--- txtString?
Thanks, Dan
I have:
Dim txtString, txtDate As String
Me.calDate1.Value = Now()
txtDate = Me.calDate1.Value
txtString = Me.txtFormName & Me.txtDateField & " = #" & txtDate & "#"
This produces: forms!iInstFrmAnalogDCS.iInstFrmAnalogDCSSub.Form.txtPerfDate = #3/8/2007#
- which is what I want.
How do I run this? - DoCmd.Run--- txtString?
Thanks, Dan