M
M Skabialka
This should be from Access 101, but I can't figure out how to set the
recordsource on frmDocs from another form which is opening it, based on a
user selection on that form in Access 2000.
DoCmd.OpenForm "frmDocs"
The following all give me errors trying to set the Record Source from
another form (where Me!lstTables = "tblDocument")
Forms!frmDocs.RecordSource = Me!lstTables
2580 The record source 'tblDocument' specified on this form or report does
not exist. (Yes it does, it is a table)
Forms("frmDocs").RecordSource = Me!lstTables
2101 The setting you entered isn't valid for this property.
Forms("frmDocs").RecordSource = "SELECT * FROM " & Me!lstTables
2101 The setting you entered isn't valid for this property.
Forms!frmDocs.RecordSource = "SELECT * FROM tblDocument"
2101 The setting you entered isn't valid for this property.
Set frm = Forms!frmDocs
frm.RecordSource = Me!lstTables
2101 The setting you entered isn't valid for this property.
What am I doing wrong?
Thanks,
Mich
recordsource on frmDocs from another form which is opening it, based on a
user selection on that form in Access 2000.
DoCmd.OpenForm "frmDocs"
The following all give me errors trying to set the Record Source from
another form (where Me!lstTables = "tblDocument")
Forms!frmDocs.RecordSource = Me!lstTables
2580 The record source 'tblDocument' specified on this form or report does
not exist. (Yes it does, it is a table)
Forms("frmDocs").RecordSource = Me!lstTables
2101 The setting you entered isn't valid for this property.
Forms("frmDocs").RecordSource = "SELECT * FROM " & Me!lstTables
2101 The setting you entered isn't valid for this property.
Forms!frmDocs.RecordSource = "SELECT * FROM tblDocument"
2101 The setting you entered isn't valid for this property.
Set frm = Forms!frmDocs
frm.RecordSource = Me!lstTables
2101 The setting you entered isn't valid for this property.
What am I doing wrong?
Thanks,
Mich