CHAOSinACT
Registered User.
- Local time
- Tomorrow, 01:10
- Joined
- Mar 18, 2009
- Messages
- 235
i am trying to sort all variations of a job number
ie:
job 093 has
093-20
093-10
etc
if i enter 093* in query criteria it works (as i would think!) but i need it to adapt to whatever job number is current on the fly. i can write a script to get current job number from form:
Form_frmCivilMinorJobs.txtCivilJobNumberDisplay.Value
and return through a function, that give me "093" only (missing variations) but if i type
Form_frmCivilMinorJobs.txtCivilJobNumberDisplay.Value & "*"
it comes back with NOTHING instead of more! i've tested the variable, its sending "093*" and doent work, though typing that into query directly does!
is there some trick to using wildcards within VBA?
ie:
job 093 has
093-20
093-10
etc
if i enter 093* in query criteria it works (as i would think!) but i need it to adapt to whatever job number is current on the fly. i can write a script to get current job number from form:
Form_frmCivilMinorJobs.txtCivilJobNumberDisplay.Value
and return through a function, that give me "093" only (missing variations) but if i type
Form_frmCivilMinorJobs.txtCivilJobNumberDisplay.Value & "*"
it comes back with NOTHING instead of more! i've tested the variable, its sending "093*" and doent work, though typing that into query directly does!
is there some trick to using wildcards within VBA?