jake7363
Technical User
- May 31, 2006
- 56
Hi,
I have two tables: tblJan, tblFeb
I have 1 form: frmMonth.
I am trying to use a command button to change the recordsource to view another month. Here is what I have:
Sub cmdFeb_Click()
Forms!frmMonth.RecordSource = "tblFeb"
End Sub
An error message appears as follows:
"Run-time error '3251':
Operation is not supported for this type of object"
If this doesn't work, how can I get the recordsource to change to Feb?
Thanks in advance,
Jake
I have two tables: tblJan, tblFeb
I have 1 form: frmMonth.
I am trying to use a command button to change the recordsource to view another month. Here is what I have:
Sub cmdFeb_Click()
Forms!frmMonth.RecordSource = "tblFeb"
End Sub
An error message appears as follows:
"Run-time error '3251':
Operation is not supported for this type of object"
If this doesn't work, how can I get the recordsource to change to Feb?
Thanks in advance,
Jake