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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hiding fields of a called form 1

Status
Not open for further replies.

vinanti

Programmer
Mar 7, 2003
26
IN
hi there,
I have created a combo box.after selecting any thing from it it takes u to the modify record form.now i want to disable and hide a few buttons like add record,delete record and a few text boxes on this form.

could any body help,please,i have hunted a lot of forum pages for the same.

wating for reply.
vini
 
As I understand U a new form is opend via this combo, if this is so you could use the OpenArgs:
DoCmd.OpenForm "YrForm", , , , , , YrArg
and on this forms OnOpen event:
If OpenArgs="YrArg" then
Me!yrButton.visible=false
Me.AllowAdditions = False
Me.AllowDeletions = False
else
yrstuf
end if

rgds
Herman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top