473,396 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Table autonumbers in a Query

I have 2 tables, both have 1 field each with an autonumber: one is Contact ID field and the other is Payment ID field.

When I use both tables in a query and I try to add a record directly in the query (I know strange but stay with me), the Contact ID autonumber works and generates a new number for the record, however the Payment ID field does not autogenerate a new number for the same record.

What can I do to make both autonumber fields generate a new number for one new record entered into the query?

Thanks in advance.
Sep 29 '11 #1
3 1538
Rabbit
12,516 Expert Mod 8TB
You have to put one in a subform, most likely the payments, and then link the two together.
Sep 29 '11 #2
@Rabbit
I'm working in a query using 2 tables. Both tables have their own autonumber field. One field does work properly and autogenerate a number when I add a record from within the Query, however, the 2nd autonumber field from the other table doesn't not autogenerate a number, it leaves it blank.

My question is, from within the Query - how do I get the 2nd autonumber field to generate an autonumber like the first autonumber field did?

Thank you.
Sep 29 '11 #3
Rabbit
12,516 Expert Mod 8TB
When using a query that references more than one table, you can only insert into, at most, one table. There's no way around that. What you have to do is break it up into a main form / subform setup.
Sep 29 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Siva | last post by:
Hi, i want to know, how to get the structure of the table in query format(create table ...). any one can help me. bye & thanxs Siva Prakash. M
1
by: Philehof | last post by:
Hi Group. I would like to add some information to a query. I tried to create a table with the information from the query but then if i run the query again the additional data will be lost. ...
3
by: Andrew | last post by:
Hi All I wonder if anyone can help me with this. The scenario is that I have a pair of related tables. One contains record labels, the other contains contact names at those labels. In the...
1
by: babyjek | last post by:
SELECT ProjectID, ProjectName, ProjectDescription, SequenceNumber, LastUpdateDate FROM Project WHERE ProjectID = @ProjectID; (The Microsoft Jet database engine cannot find the input table or...
0
by: Hemant Pathak | last post by:
Hi All i m working in Vb 6.0 and Access 2000 i want to export Table or Query Source database to Destination Database
2
rsmccli
by: rsmccli | last post by:
I am getting this error using Refreshlink from code. No problem for admins, only some normal users. It says Error 3111: you have no permissions for Table or Query TMP%#MAU@. This object does not...
6
by: warpcon | last post by:
Im trying to build a database starting with one of the templates that come with access. I took out the employee part in all the tables and forms. Now when I pull up a workorder and then try to view...
0
by: Giero | last post by:
Hello, I have a little problem with my database. I created table where one of the fields is hyperlinked and is linking to the .doc files stored on the network drive. I can get the queries and...
3
by: rinu911 | last post by:
hi all I am tring to insert a values to a table by checking if the value is there in the table already but it gives me this error "Query input must contain at least one table or query" ...
2
by: KMEscherich | last post by:
Hi there, as I am totally new at this, can someone please give me detailed information on how to get Access table or query data to display onto a Dreamweaver page??? Thank you.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.