PDA

View Full Version : Solved: controle 1 access from from another form



Trevor
01-27-2008, 06:12 PM
I am trying to enable or disable buttons on a seperat from based upon a selection. I am trying to do it this way because the form being accessed has two uses and I would rather disable buttons then have to make a sperate form. the button im tryin to controle is on a seperat form "form1".

Private Sub Okbutton_Click()
Select Case SelectionFrame.Value
Case 1

stDocName = "Form1"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Form1.Command3.Enabled = False
Me!Command3.Enabled = False
End Select
End Sub

Trevor
01-28-2008, 05:04 PM
I figured it out
forms![Form name]![Field].proporty.value