A
AccessMan
I have a form that contains only unbound controls. These are used for
selecting values for new records that I want to create in multiple tables.
I've made an attempt with AddNew but have encounted an 'invalid use of
property' error on the second statement below.
Dim rst As DAO.Recordset
rst = CurrentDb.OpenRecordset("table name")
Yes, there is an embedded space in the table name, but enclosing in square
brackets makes no difference (regarding this error). Can someone please help
me understand what is wrong here?
Also, I read an Allen Browne post from 3/27/2008 that suggests an approach
using an sql string and ...
CurrentDb.Execute strSql, dbFailOnError
Is this a cleaner approach that AddNew?
How would I pass control back to the form if there is an insertion failure?
Thanks!!!
selecting values for new records that I want to create in multiple tables.
I've made an attempt with AddNew but have encounted an 'invalid use of
property' error on the second statement below.
Dim rst As DAO.Recordset
rst = CurrentDb.OpenRecordset("table name")
Yes, there is an embedded space in the table name, but enclosing in square
brackets makes no difference (regarding this error). Can someone please help
me understand what is wrong here?
Also, I read an Allen Browne post from 3/27/2008 that suggests an approach
using an sql string and ...
CurrentDb.Execute strSql, dbFailOnError
Is this a cleaner approach that AddNew?
How would I pass control back to the form if there is an insertion failure?
Thanks!!!