g'day,
I have a form with a text field (txtDirName) from which users can select a directory. The directory can be selected at random but must partially contain the value of either "Imports" or "Clearances" (eg. V:\ManufacturingData\Imports).
I want to make 1 of 2 buttons visible based on the value contained in txtDirName. To test the contents Iof the field I created a temporary button with code such as:
select case me!txtDirName
case "*import*"
msgbox "Imports"
case "*clearance*"
msgbox "Clearances"
case else
msgbox "Not valid"
end select
This code does not do anything. It's like the button had no code attached to it. Any ideas what I am doing wrong?
thanks
Dave
I have a form with a text field (txtDirName) from which users can select a directory. The directory can be selected at random but must partially contain the value of either "Imports" or "Clearances" (eg. V:\ManufacturingData\Imports).
I want to make 1 of 2 buttons visible based on the value contained in txtDirName. To test the contents Iof the field I created a temporary button with code such as:
select case me!txtDirName
case "*import*"
msgbox "Imports"
case "*clearance*"
msgbox "Clearances"
case else
msgbox "Not valid"
end select
This code does not do anything. It's like the button had no code attached to it. Any ideas what I am doing wrong?
thanks
Dave