Hi CJ, thank you, your original snippet did the trick, and yes none of the users will be able to gain access to the behind the scenes of the database, they will only be able to see the form views. I like to the look of what you have just suggested and so I think I will test it out, thank you once again.it depends on how sophisticated you want to get. You could have a table of allowed users and your code could be
Button.visible =dlookup("username","tblAllowedUsers","username ='" & (Environ(“username”) & "'")<>""
I presume you have other security in place such as preventing users from viewing the navigation pane which would allow them to open the form just by clicking on it.