E
evilcowstare via AccessMonster.com
Hello All !
Was just wondering if someone can help me with a little code. I know bits of
what I want to do but getting a bit confused...
Basically I have two forms, on one form is a button that opens up the second
form using...
On_Click
DoCmd.OpenForm "Jobs", , , , acFormAdd
what I would also like it to do is from that button only that when the second
form opens certain buttons and combos are disabled. I want this to only
happen from the button and not if the 2nd form is opened on its own without
the 1st form.
Im guessing that I need to add additional code to the on click part but Im
unsure what to put.
The first Form with the button is called Customers, the second form in called
Jobs.
The only code ive used for this sort of thing has been in the same form that
the stuff I have been trying to disable has been on, Ive never tried to make
it do it via another form
If it helps the code I have used before which was designed to make a button
disabled until the combo had something selected was...
sitebutton.Enabled = Not IsNull (addresscombo)
If anyone can help it will be appreciated, Im sure that the answer is a lot
easier then all this stuff ive just waffled on about )
Thank You !
Was just wondering if someone can help me with a little code. I know bits of
what I want to do but getting a bit confused...
Basically I have two forms, on one form is a button that opens up the second
form using...
On_Click
DoCmd.OpenForm "Jobs", , , , acFormAdd
what I would also like it to do is from that button only that when the second
form opens certain buttons and combos are disabled. I want this to only
happen from the button and not if the 2nd form is opened on its own without
the 1st form.
Im guessing that I need to add additional code to the on click part but Im
unsure what to put.
The first Form with the button is called Customers, the second form in called
Jobs.
The only code ive used for this sort of thing has been in the same form that
the stuff I have been trying to disable has been on, Ive never tried to make
it do it via another form
If it helps the code I have used before which was designed to make a button
disabled until the combo had something selected was...
sitebutton.Enabled = Not IsNull (addresscombo)
If anyone can help it will be appreciated, Im sure that the answer is a lot
easier then all this stuff ive just waffled on about )
Thank You !