hi
can u help me how to open a sub form with in a main form
without opening a new window..... in adp file..
i tried to do but i am getting a new window...
my main form (frm_searchby_Name)consists
of text field to enter the address and button
my sub form (sfrm_searchby_Name) consists of record
source an inline function which accepts i/p parameter
a address and i assigned the input parameter
field in the subform to the text field of main form.
so
when i click the button a new subform window is opening...
instead is there a way to open within the form itself??
thank u
ssr
Code: ( vb )
Private Sub Command20_Click()
On Error GoTo Err_Command20_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "sfrm_searchby_Name"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command20_Click:
Exit Sub
Err_Command20_Click:
MsgBox Err.Description
Resume Exit_Command20_Click
End Sub
can u help me how to open a sub form with in a main form
without opening a new window..... in adp file..
i tried to do but i am getting a new window...
my main form (frm_searchby_Name)consists
of text field to enter the address and button
my sub form (sfrm_searchby_Name) consists of record
source an inline function which accepts i/p parameter
a address and i assigned the input parameter
field in the subform to the text field of main form.
so
when i click the button a new subform window is opening...
instead is there a way to open within the form itself??
thank u
ssr
Code: ( vb )
Private Sub Command20_Click()
On Error GoTo Err_Command20_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "sfrm_searchby_Name"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command20_Click:
Exit Sub
Err_Command20_Click:
MsgBox Err.Description
Resume Exit_Command20_Click
End Sub