PC Review


Reply
Thread Tools Rate Thread

Create new record

 
 
Del
Guest
Posts: n/a
 
      29th Jul 2008
What Access 2000 code can I use to create a new record in a table? The table
is not the record source for the form where I have the code.

--
Thank you,
Del
 
Reply With Quote
 
 
 
 
Del
Guest
Posts: n/a
 
      29th Jul 2008
I need to write a number of variables into the new record and I'm not sure
how to use the append query to do that.
--
Thank you,
Del


"ruralguy via AccessMonster.com" wrote:

> Look into an APPEND query.
>
> Del wrote:
> >What Access 2000 code can I use to create a new record in a table? The table
> >is not the record source for the form where I have the code.
> >

>
> --
> RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP WinXP Pro
> Please post back to this forum so all may benefit.
>
> Message posted via AccessMonster.com
> http://www.accessmonster.com/Uwe/For...dules/200807/1
>
>

 
Reply With Quote
 
Del
Guest
Posts: n/a
 
      29th Jul 2008
thank you for the code
--
Thank you,
Del


"ruralguy via AccessMonster.com" wrote:

> Something like:
> Dim MySQL As String
> MySQL = "Insert Into tblNAME(FIELD1, FIELD2, FIELD3) " & _
> "Values( '" & Me.txtFIELD1 & "','" & Me.txtFIELD2 & "',27)"
> CurrentDB.Execute MySQL, dbFailOnError
> Set db = Nothing
>
> Using YOUR FIELD AND CONTROL NAMES of course.
>
> Del wrote:
> >I need to write a number of variables into the new record and I'm not sure
> >how to use the append query to do that.
> >> Look into an APPEND query.
> >>
> >> >What Access 2000 code can I use to create a new record in a table? The table
> >> >is not the record source for the form where I have the code.

>
> --
> RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP WinXP Pro
> Please post back to this forum so all may benefit.
>
> Message posted via AccessMonster.com
> http://www.accessmonster.com/Uwe/For...dules/200807/1
>
>

 
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 a new record at subform should update an existing record (not create new record) Mark Kubicki Microsoft Access Form Coding 1 16th Jan 2009 08:34 AM
Auto create record based on criteria and date in another record =?Utf-8?B?aG9tMzcw?= Microsoft Access 7 27th Sep 2007 02:17 AM
create a new record and show detail form with new record displayed ryan Microsoft VB .NET 0 25th Jul 2007 06:19 PM
On Form, Save Record and Create New Record based on the change of one control jcamrud Microsoft Access Forms 0 19th Jan 2007 04:53 PM
Re: Is ever record in Outlook somehow tied to the form that was used to create the record? Stuart Loy Microsoft Outlook Form Programming 1 24th Jul 2003 01:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:10 AM.