C
Chris Strug
Hi,
Its been a while since I worked with DAO (its all ADO now...) so please
excuse me if this is a daft question...
I'm after an efficient way to insert a row into a local table in an unbound
form and return the ID (autonumber) of the new record.
How on earth do I do it?
I've been looking for samples but seem to be unable to get anything working.
I'm looking at using a querydef but I'm unsure as to how to achieve it.
For example,
Dim DAOqd as dao.querydef
set DAOqd = new DAO.querydef
And of course assuming that I do get it working, I'm not sure how to return
the ID of the newly inserted field.
I realise that this is a bit vague for a simple reply, but I'd be most
grateful if anyone could point me in the right direction / provide a link /
etc.
Any and all assistance is gratefully received.
Thanks
Chris.
Its been a while since I worked with DAO (its all ADO now...) so please
excuse me if this is a daft question...
I'm after an efficient way to insert a row into a local table in an unbound
form and return the ID (autonumber) of the new record.
How on earth do I do it?
I've been looking for samples but seem to be unable to get anything working.
I'm looking at using a querydef but I'm unsure as to how to achieve it.
For example,
Dim DAOqd as dao.querydef
set DAOqd = new DAO.querydef
And of course assuming that I do get it working, I'm not sure how to return
the ID of the newly inserted field.
I realise that this is a bit vague for a simple reply, but I'd be most
grateful if anyone could point me in the right direction / provide a link /
etc.
Any and all assistance is gratefully received.
Thanks
Chris.