Show/hide button depending on table data

TUSSFC

Registered User.
Local time
Today, 14:05
Joined
Apr 12, 2007
Messages
57
I'm looking for some code which will show a certain form button IF SQL criteria is met.

Basically, I have user data in a table with one field being 'Admin'. If the user which has logged in to the database has a 'Yes' value in the Admin field then I want the button to show. Otherwise it should be hidden.

I've got the SQl statement ready to go - can anyone suggest code?

Thanks.
 
use a dlookup for your feild and if that is equal to admin then

buttonname.visible=true
else
buttonname.visible=false
end if
 
Cheers bud - that was nice n easy!
 

Users who are viewing this thread

Back
Top Bottom