Adding new records via recordset

S

ssutton503

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.
 
J

Jerry Whittle

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.
 
S

ssutton503

Thanks guys. I will rethink how I am approaching this situation. I'm sure you
are right when you say that "just opening a form" won't create a new record.
It seems that what happens is that as soon as the user starts entering data
 
J

John... Visio MVP

If you need extensive help, I can help you. I provide help with Access,
Excel and Word applications for a small fee. If you would like my help,
contact me.

Steve
(e-mail address removed)

If you want to know how much of an expert stevie is, check out his website,
www.pcdatasheet.com and see his tips page. That page has had zero content
for years.



These newsgroups are provided by Microsoft for FREE peer to peer support.
There are many highly qualified individuals who gladly help for free. Stevie
is not one of them, but he is the only one who just does not get the idea of
"FREE" support. He offers questionable results at unreasonable prices. If he
was any good, the "thousands" of people he claims to have helped would be
flooding him with work, but there appears to be a continuous drought and he
needs to constantly grovel for work.

A few gems gleaned from the Word New User newsgroup over the Christmas
holidays to show Stevie's "expertise" in Word.


Dec 17, 2008 7:47 pm

Word 2007 ..........
In older versions of Word you could highlght some text then go to Format -
Change Case and change the case of the hoghloghted text. Is this still
available in Word 2007? Where?
Thanks! Steve


Dec 22, 2008 8:22 pm

I am designing a series of paystubs for a client. I start in landscape and
draw a table then add columns and rows to setup labels and their
corresponding value. This all works fine. After a landscape version is
completed, I next need to design a portrait version. Rather than strating
from scratch, I'd like to be able to cut and paste from the landscape
version and design the portrait version.
Steve


Dec 24, 2008, 1:12 PM

How do you protect the document for filling in forms?
Steve


One of my favourites:
Dec 30, 2008 8:07 PM - a reply to stevie
(The original poster asked how to sort a list and stevie offered to create
the OP an Access database)
Yes, you are right but a database is the correct tool to use not a
spreadsheet.


Not at all. If it's just a simple list then a spreadsheet is perfectly
adequate...




John... Visio MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top