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

Multiple Tables in Access

1
I need some assistance with a format in Access.
I need several tables to use the same pool of autogenerated numbers (badge numbers) and automatically fill that value upon each record generation. I have found that the NZ(DMax("field name","table name"),500)+1 command works fine from a FORM...not the table itself....as far as auto generating a number.
But I need an autogenerated number that is consistant from the pool to be available and filled for each individual table which represents the department that the badge comes from.

I can't get a table to "see" the value from the pool or fill that value.

I can't get the auto number command to work from the table itself.... it needs to because I have a custom application that doesnt interact with a form created in access.

TIA for any help you guys can provide
Byron
Jan 11 '07 #1
3 1533
An AutoNumber field type only will do. If you want some sort of formatting of autonumber then it should pass to an interface.

George

I need some assistance with a format in Access.
I need several tables to use the same pool of autogenerated numbers (badge numbers) and automatically fill that value upon each record generation. I have found that the NZ(DMax("field name","table name"),500)+1 command works fine from a FORM...not the table itself....as far as auto generating a number.
But I need an autogenerated number that is consistant from the pool to be available and filled for each individual table which represents the department that the badge comes from.

I can't get a table to "see" the value from the pool or fill that value.

I can't get the auto number command to work from the table itself.... it needs to because I have a custom application that doesnt interact with a form created in access.

TIA for any help you guys can provide
Byron
Jan 11 '07 #2
nico5038
3,080 Expert 2GB
Your only option will be to use another database (eg MS SQL, MySQL or Oracle) that does support code (Stored Procedures) to be executed when an INSERT (or other action) on the table is performed.
The Jet-engine of Access won't support this.

Nic;o)
Jan 11 '07 #3
NeoPa
32,556 Expert Mod 16PB
Another possible alternative would be for your application to handle generating the new key field upon creation of new records.
Jan 12 '07 #4

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

Similar topics

1
by: bdj | last post by:
Hello! Can anyone tell me where to read more about best practices about this: Should I put data in a seperate scheme for tables, packages in anoter schema and create a lot of users that have...
5
by: Scott Tilton | last post by:
I am having a terrible time getting this to work. I am hoping someone out there can help me with very specific code examples. I am trying to get the linked tables in my Access 97 database to be...
3
by: Jorge | last post by:
We have an application with Access 2000 and normally there are three designers working simultaneously. But forms or report modifications requires exclusive use. That force to all others users must...
6
by: Don Leverton | last post by:
Hi All, I've got a situation where I am developing an Access 97 app for a client, and am in the "beta testing" stage. I have split the app up, using the DB splitter, into front-end /back-end...
5
by: Sami | last post by:
I can create queries and reports based on info from one table. How do I create one using information from multiple tables. What do I need to make sure the information from one table will be...
11
by: Randy Harris | last post by:
I have been using "IN" to query tables in Oracle from MS Access very successfully. Select Field FROM MyTable IN [ODBC...etc Works great if there is only one table involved. Anyone know how I...
9
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
1
by: Felix_WafyTech | last post by:
Hi, I'm working with the ObjectDatasource and the application is getting more and more chatty. Is there a way I could make the ObjectDatasource support multiple DataTables that could be...
4
by: knix | last post by:
I have this access project consisting of multiple tables that are linked together in a relationship. I would like to migrate the consolidated information through appending in a datasheet form or...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.