sub5
Programmer
- Oct 12, 2005
- 104
Hi
When I try to pass this table name from procedure1 to function1 it tells me "object variable or with block variable not set"
private sub procedure1
call function1("T-Table1")
end sub
private function function1(strTable as String)
dim db as database, rst as recordset
set rst = db.openrecordset(strTable)
rst.edit
rst!field = 300
rst.update
end function
Is it possible to pass a table name?
When I try to pass this table name from procedure1 to function1 it tells me "object variable or with block variable not set"
private sub procedure1
call function1("T-Table1")
end sub
private function function1(strTable as String)
dim db as database, rst as recordset
set rst = db.openrecordset(strTable)
rst.edit
rst!field = 300
rst.update
end function
Is it possible to pass a table name?