F
fulltime
Hi all,
I am using the codes beneath to create a form programmatically, the
form tat it shld base itself on is a current form tat exists in the
database, "Danish"
Private Sub NewForm_Click()
Dim frm As Form
'Create a new form based on the XXXXX form
Set frm = CreateForm(, "Danish")
DoCmd.Restore
frm.RecordSource = "Danish Q"
End Sub
When the form is created, it does set its record source to Danish Q BUT
the form is blank. I thought by specifying the template, i.e Danish, it
shld also copy the textboxes and buttons on the Danish form as well??
My main objective is to make a copy of the form, titled Danish, then
change the record source to Chinese Q, how can i achieve it
programmatically?
Thanks.
FT
I am using the codes beneath to create a form programmatically, the
form tat it shld base itself on is a current form tat exists in the
database, "Danish"
Private Sub NewForm_Click()
Dim frm As Form
'Create a new form based on the XXXXX form
Set frm = CreateForm(, "Danish")
DoCmd.Restore
frm.RecordSource = "Danish Q"
End Sub
When the form is created, it does set its record source to Danish Q BUT
the form is blank. I thought by specifying the template, i.e Danish, it
shld also copy the textboxes and buttons on the Danish form as well??
My main objective is to make a copy of the form, titled Danish, then
change the record source to Chinese Q, how can i achieve it
programmatically?
Thanks.
FT