dbTalk Databases Forums  

How do I insert records from form

comp.databases.ms-access comp.databases.ms-access


Discuss How do I insert records from form in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Steve
 
Posts: n/a

Default How do I insert records from form - 10-16-2008 , 06:34 AM






All,
I'm not a big Access user - I'm developing a department database. It's
based on the Resource template.

I've created a form with a control for each field.
Once I select my submit button what is the proper code to insert
record

I have the following control types

textbox & Checkbox

Thanks
Steve

Reply With Quote
  #2  
Old   
Keith Wilby
 
Posts: n/a

Default Re: How do I insert records from form - 10-16-2008 , 07:01 AM






"Steve" <dafella007 (AT) yahoo (DOT) com> wrote

Quote:
All,
I'm not a big Access user - I'm developing a department database. It's
based on the Resource template.

I've created a form with a control for each field.
Once I select my submit button what is the proper code to insert
record

I have the following control types

textbox & Checkbox

Thanks
Steve
You don't need a submit button. To add a record press the navigation button
that looks like an arrow head and an asterisk >*

The data will be saved when you either navigate to another record or you
press the record selector.

Keith.
www.keithwilby.co.uk



Reply With Quote
  #3  
Old   
jonceramic
 
Posts: n/a

Default Re: How do I insert records from form - 10-16-2008 , 10:17 AM



On Oct 16, 6:34*am, Steve <dafella... (AT) yahoo (DOT) com> wrote:
Quote:
All,
I'm not a big Access user - I'm developing a department database. It's
based on the Resource template.

I've created a form with a control for each field.
Once I select my submit button what is the proper code to insert
record

I have the following control types

textbox & Checkbox

Thanks
Steve
As the other poster said, once you move to a different record, it's
saved. If you really want a "save record" button, then that's in
there.

Either make a macro that says:
Action:RunCommand
Command: SaveRecord

Or write VBA code that says:
DoCmd.RunCommand acCmdSaveRecord

Like Keith said, you don't necessarily have to do this. Typical case
I use save record is when I need to execute code that uses the record
you've been editing.

Jon


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.