Copy Record With VBA (Access 2000)
- From: WCR <WCR@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 8 Apr 2005 09:59:06 -0700
I want to create a new record by clicking on a button in a form. The record
needs to copy the data from the form's current record in all fields but one
(a unique index field). The button wizard has a copy record option, but it
doesn't seem to work.
I think I know how to do this with an SQL statement (INSERT), but I would
have to change the SQL every time a field is added to the table, and there
are many fields in the table, so I would rather not do this unless there is a
way to automate it.
It seems like this should be fairly straight-forward with the recordset
object, but I have not been able to figure it out. Any of you experts know
how to do this? Thanks in advance!
.
- Follow-Ups:
- RE: Copy Record With VBA (Access 2000)
- From: WCR
- Re: Copy Record With VBA (Access 2000)
- From: Tim Ferguson
- RE: Copy Record With VBA (Access 2000)
- Prev by Date: Re: duplicate fields
- Next by Date: Re: duplicate fields
- Previous by thread: opening another database
- Next by thread: Re: Copy Record With VBA (Access 2000)
- Index(es):
Loading