Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 27th, 2007, 01:57 PM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default Autonumber and insert into statement.

Hi,

I have one table which has about 7 to 8 fields, except first, all fields are getting values from user form.

Now first field is ID (Autonumber),
How do i specify that value in my INSERT INTO <Table Name> ... query?

I tried INSERT INTO (XX,YY,AA..(FIELDS NAME)) VALUES (VALUES...)
 but gives the same error as "Parameters are not matching.."

I know it gives error becs i have not specify ID(AutoNumber) value.

Can anyone pleas help?

Thanks in Advance.
Rupen.

Rupen Anjaria.:)
------------------
It is not difficult to be on TOP...It is difficult when you carry Truth,Commitment and Transparency with you.
 
Old July 27th, 2007, 02:23 PM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

Kindly Ignore this...

Rupen Anjaria.:)
------------------
It is not difficult to be on TOP...It is difficult when you carry Truth,Commitment and Transparency with you.





Similar Threads
Thread Thread Starter Forum Replies Last Post
vb.net sql autonumber insert GIGAM25 SQL Language 1 July 10th, 2008 01:10 AM
insert and/or update statement carswelljr SQL Language 3 September 28th, 2006 10:03 AM
Insert Statement Iashia06 Access 0 April 7th, 2006 12:45 PM
complex insert statement? qwjunk SQL Server 2000 3 November 2nd, 2004 04:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.