View Single Post
  #2  
Old August 20th, 2009, 06:47 PM posted to microsoft.public.access.gettingstarted
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default Adding new records via recordset

I don't like the fact that
just opening the form creates a new record in the table even if the user
never enters anything.


Forms do not do that unless you have a code or a macro doing something very
strange.

Do a google search on Access Unbound Forms. They can do what you want, but
are a LOT of trouble. It would be easier to revisit how bogus records are
being added to your tables and fix that.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"ssutton503" wrote:

I want to create a form for the user to input some new jobs but I don't want
the form bound to a table (as I originally did). I don't like the fact that
just opening the form creates a new record in the table even if the user
never enters anything. What I'm thinking should happen is when the form opens
it creates a recordset, the new entries get added to the recordset, then the
user can choose to add the records from the recordset to the actual table
when they get done. Only problem is, I don't know how to do that. I know how
to create a recordset from an existing table but that seems a bit silly to
load the entire table when I just need the database structure for the
recordset. Can I just create a recordset, add the user's entries to the
recordset, then loop through the recordset and add the new records to the
table with and INSERT statement? Or am I just going at this the hard way? Any
suggestions would be greatly appreciated.