S
Simon
Dear Sir/Madam i want ask you for that ..
I have a main form which has a button, when the user clicks the button opens
an other form with the paramaters :
Call Open_Form_1(Me!Fld_1.Name, "tbl_Test", Form_Frm_Test.Name)
the porcedure is ..
Private Sub Open_Form_1(FldName As String, TblName As String, FileN As String)
On Error GoTo Err_Open_Form_1
.....
....
if ....
Forms(FileN).Allowadditions=True
DoCmd.OpenForm FileN, acNormal, , , acFormAdd, acDialog
else
Forms(FileN).Allowadditions=False
DoCmd.OpenForm FileN, acNormal, , , acFormEdit, acDialog
endif
....
end sub
My question is the the commands forms(FileN), appers a message that the
access can't find the form in the FileN parameter.
How can i fix it ?
Thank you in advance for your collaboration
Simon
I have a main form which has a button, when the user clicks the button opens
an other form with the paramaters :
Call Open_Form_1(Me!Fld_1.Name, "tbl_Test", Form_Frm_Test.Name)
the porcedure is ..
Private Sub Open_Form_1(FldName As String, TblName As String, FileN As String)
On Error GoTo Err_Open_Form_1
.....
....
if ....
Forms(FileN).Allowadditions=True
DoCmd.OpenForm FileN, acNormal, , , acFormAdd, acDialog
else
Forms(FileN).Allowadditions=False
DoCmd.OpenForm FileN, acNormal, , , acFormEdit, acDialog
endif
....
end sub
My question is the the commands forms(FileN), appers a message that the
access can't find the form in the FileN parameter.
How can i fix it ?
Thank you in advance for your collaboration
Simon