PC Review


Reply
Thread Tools Rate Thread

Adding information in a table automaticly with just a few entries.

 
 
Randy
Guest
Posts: n/a
 
      21st Oct 2008
I am trying to enter 5 peices of Information and with this information Access
then Adds to a table that has 16 fields in it. I am not sure how to proced.
 
Reply With Quote
 
 
 
 
Scott Lichtenberg
Guest
Posts: n/a
 
      21st Oct 2008

Randy,

Start by creating a form. Put your 5 text boxes (or combo boxes, etc) on
the form. Then put a command button on the form. In the OnClick event of
the combo box you'll want to write code something like the following:

Dim db as Database
Dim rs as Recordset

Set db = CurrentDb
Set rs = db.OpenRecordset("MyTable", dbOpenDynaset)

rs.AddNew
rs!Field1 = MyTextBox1
rs!Field2 = MyTextBox2 'etc.
rs.Update

Set rs = Nothing
Set db = Nothing




"Randy" <(E-Mail Removed)> wrote in message
news:38906853-FA97-4E00-8CB7-(E-Mail Removed)...
>I am trying to enter 5 peices of Information and with this information
>Access
> then Adds to a table that has 16 fields in it. I am not sure how to
> proced.


 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      21st Oct 2008
On Tue, 21 Oct 2008 09:05:01 -0700, Randy <(E-Mail Removed)>
wrote:

>I am trying to enter 5 peices of Information and with this information Access
>then Adds to a table that has 16 fields in it. I am not sure how to proced.


Simplest would be to just create a Form based on the table. Enter the five
values you want added on the form; Access will automatically save the record
to the table when you move off it or close the form.

You don't say what the sixteen fields are, whether they're required, or what
they have to do with the five fields you're adding, so I'm not certain this
adresses your question!
--

John W. Vinson [MVP]
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding the number of table entries by type =?Utf-8?B?U2F2X0M=?= Microsoft Excel Worksheet Functions 6 7th Aug 2006 08:10 AM
Adding information to a table stephanie Microsoft Access External Data 1 22nd Feb 2005 06:37 AM
Accessing database information when the table has no entries =?Utf-8?B?bWlrZQ==?= Microsoft Access 1 15th Oct 2004 04:17 PM
adding new entries to table ashley Microsoft Access Forms 1 6th Oct 2004 04:00 PM
Re: Adding entries to a table Arvi Laanemets Microsoft Access 0 21st Apr 2004 08:07 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:32 AM.