V
vircalendar via AccessMonster.com
Can someone please tell me why the following code does not work? I get error
2580: the record source 'SELECT ['& strtable &'].[& ' strfield & '] FROM
['&strtable&']' specified on this for or report does not exist. I assume
that I am not nesting the strtable and strfield strings correctly, but I'm
not sure what's wrong with the way I've done it.
dim strtable as string
dim strfield as string
strtable = "doctors"
strfield = "name"
frm_admin1_subform.Form.RecordSource = "SELECT ['& strtable &'].[& ' strfield
& '] FROM ['&strtable&']"
2580: the record source 'SELECT ['& strtable &'].[& ' strfield & '] FROM
['&strtable&']' specified on this for or report does not exist. I assume
that I am not nesting the strtable and strfield strings correctly, but I'm
not sure what's wrong with the way I've done it.
dim strtable as string
dim strfield as string
strtable = "doctors"
strfield = "name"
frm_admin1_subform.Form.RecordSource = "SELECT ['& strtable &'].[& ' strfield
& '] FROM ['&strtable&']"