Dear all,
I seem to have an issue with a piece of VBA code in acces.
Extrapolated from the larger code, I've got the snippet below.
The problem now is that when I run this code I get a prompt wich says 'GC_Annexes' and below it is a textbox.
Once I type GC_Annexes in the box the code is continued flawlessly. I would like to be able to skip the part where I have to type in the box.
Can anyone help here?
Thanks!!!
I seem to have an issue with a piece of VBA code in acces.
Extrapolated from the larger code, I've got the snippet below.
Code:
fileDirectory = "GC_Annexes"
temp = "[DirectoryName] = '" & fileDirectory & "'"
counter = DLookup("[CounterValue]", "tblCounter", temp)
The problem now is that when I run this code I get a prompt wich says 'GC_Annexes' and below it is a textbox.
Once I type GC_Annexes in the box the code is continued flawlessly. I would like to be able to skip the part where I have to type in the box.
Can anyone help here?
Thanks!!!