Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Form and Conditional Formatting

Status
Not open for further replies.

davehill52

Technical User
Oct 24, 2006
10
US
Is there a way to set conditions on a field based on who the user accessing the form?

I have a field that if the Admin user is accessing the form that I would like the field to show. If it is a normal user, the field would not appear.

Dave
 
you can set an if staement
Code:
if currenuser = admin then
field1.visible = true
else 
field1.visible = false 
end if




I will try my best to help others so will others do!!!!!
IGPCS
Brooklyn, NY
 
sorry misspeling currentuser and not currenuser

I will try my best to help others so will others do!!!!!
IGPCS
Brooklyn, NY
 
or:
Code:
[blue]   Me![purple][b][i]TextboxName[/i][/b][/purple].Visible = (CurrentUser = "admin")[/blue]

Calvin.gif
See Ya! . . . . . .
 
TheAceMan i liked your cute idea of the or:

I will try my best to help others so will others do!!!!!
IGPCS
Brooklyn, NY
 
IGPCS . . .

Thanks! [thumbsup2] . . . The technique really is quite common! I have a slew of them in my library under the category [blue]Logic Smarts[/blue] . . .

Calvin.gif
See Ya! . . . . . .
 
logic smart cool

I will try my best to help others so will others do!!!!!
IGPCS
Brooklyn, NY
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top