473,385 Members | 1,983 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,385 software developers and data experts.

Autonumber Lookup

1
On a form based on table A, when a new record is started, I want to go to table B, and get the next value generated by an AutoNumber field on table B. This value would be then entered into the form and into table A. If someone has tried this before the question is this, is it easier to write code or just create a subform and update both A & B at the same time?

Any thoughts appreciated
Dec 26 '07 #1
1 2193
nico5038
3,080 Expert 2GB
Strange way to synchronize tables.
I would use a main form on table B and add a subform for table A, linked by the autonumber field. Now adding a row in the subform for table A will automatically set the proper ID in table A.

Nic;o)
Dec 30 '07 #2

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

Similar topics

5
by: Lapchien | last post by:
Our database has a field called 'Card' which records the transaction reference number. This is generated as an autonumber. Not the best way at all - I know, having picked this up in the last few...
35
by: Traci | last post by:
If I have a table with an autonumber primary key and 100 records and I delete the last 50 records, the next record added would have a primary key of 101. Is there any way to have the primary key...
1
by: interuser | last post by:
Hi I have a table STUDENTS with key (autonumber) StudentId. Studentid is a lookup column in other tables and forms I want to make it number. When I try, I get "you can't change the data type or...
1
by: Snuyt | last post by:
Hello, I have a insert query in an Access database: q="INSERT INTO tbl (f1, f2) VALUES ('1', '2')" the table has 3 fields: id: autonumber, f2: text, f3: text how do I retrieve the id from...
11
by: Alan Mailer | last post by:
A project I'm working on is going to use VB6 as a front end. The back end is going to be pre-existing MS Access 2002 database tables which already have records in them *but do not have any...
2
by: sidheeq | last post by:
Dears I want to creat a table with starting serial number from 1000 pls help me
2
by: Anekwe | last post by:
I'm modifying an Access 2000 database created by a co-worker who is no longer with the organization, and is trying to figure out one part of the program. The database has two tables, tblemployees...
6
by: PeteCresswell | last post by:
Got a table with "RecordID"=AutoNumber=PrimaryKey. Call it "tblIssuerRating". Ran a query that appends to that table from a work table. Inadvertantly appended from the work table's...
6
by: ashes | last post by:
Hi, I am creating an ecommerce website using Microsoft Visual Studio, VB.Net and MS Access 2003. I am new to VB.Net When someone wants to register on the website, they fill out a form and the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.