Hi All,
I am trying to use a wildcard in a variable.
I have set my variable as follows:
dim stDocName as Variant
In the code the stDocName gets assigned the name of the query.
In certain instances this will be = qryFutureDatedIT0000 or qryFutureDatedIT0001 etc etc.
I want to be able to find any query which starts qryFutureDated
I have tried # which I believe is to be used for numbers. I have tried qryFutureDatedIT####
There will always be 4 digits. Alas this is not being picked up.
I have tested it by using the actual name of the query selected e.g. qryFutureDatedIT0000 and this is picked up, but I want to make use of wildcards.
In the locals window I notice that the variable stDocName has attributes of string/variant
Any idea of what I should be using as my wildcard.
Thanks,
Evan
I am trying to use a wildcard in a variable.
I have set my variable as follows:
dim stDocName as Variant
In the code the stDocName gets assigned the name of the query.
In certain instances this will be = qryFutureDatedIT0000 or qryFutureDatedIT0001 etc etc.
I want to be able to find any query which starts qryFutureDated
I have tried # which I believe is to be used for numbers. I have tried qryFutureDatedIT####
There will always be 4 digits. Alas this is not being picked up.
I have tested it by using the actual name of the query selected e.g. qryFutureDatedIT0000 and this is picked up, but I want to make use of wildcards.
In the locals window I notice that the variable stDocName has attributes of string/variant
Any idea of what I should be using as my wildcard.
Thanks,
Evan