Fake An Autonumber Field In A Maketable Query

Jul 15, 2006

Hi Guys,

8 posts on the subject over a number of years and the answer seems to have been no, you can't have an auto number field in a maketable query.

Is there any reasonable way to create a sequential count of the records shown in the maketable query, not the underlying records?

Background:
I have a maketable query that selects fields from 2 tables which are ordered in a specific way. The sigma button is clicked to reduce this recordset to unique entries and this is what goes into the created table.

This newly created table is a row heading for a pivot table query and I want it ordered by the method used in the query. An autonumber or some method of counting/incrementing the records would do the trick.

I am currently creating the table and then adding the Autonumber field manually, which is hardly a solution at all. :confused:

An afterthought before I post: The reason I want the autonumber field is that the pivot table shows the records in alphabetical order rather than the order the table holds the records. Is there any way of forcing the pivot table to use the records as ordered in the table. A note of caution here, I get very confused when dabbling with pivot tables. :eek:

Any thoughts/solutions welcomed. And if I'm asking the wrong question, let me know! :)

View Replies


ADVERTISEMENT

Fake Autonumber In Query

Jul 17, 2006

How can I create a fake autonumber in a query? I have a set of data that have their own individual number but I would like to sort them by date and then run a dsum() based on the FAKE autonumber.

-Alex

View 5 Replies View Related

Run MakeTable Query Without Confirm?

Apr 3, 2006

I have "unchecked" all the confirm options under tools, but when I run the make table query it still displays "The existing table will be deleted before you run the query, do you wish to contiue? I would like it to just run without this message, or at least give a message of my choosing. Is this possible?

Thanks!

View 3 Replies View Related

Queries :: Possible To Determine Datatypes In MakeTable Query?

Jul 2, 2015

All of the types? Including Memo?

View 2 Replies View Related

Controlling Autonumber Field - Start Autonumber From 1 Everyday (Composite Key)

Nov 21, 2013

I have two tables linked to each other in one to many relationship. Instead of auto number, the date and shift (Text) is being used as the primary keys (Composite Primary Key). Here is the tables structures,

Payouts Table:
Date: Primary Key
Shift (Day or Night) : Primary Key

Bills Table:
Date: Primary Key
Shift (Day or Night): Primary Key
Autonumber: Primary Key

The tables Payouts and Bills has one to many relationship. One payout row can have many bills. The problem is that I want to start the Autonumber in bills table everyday from 1. As date and shift are different for every day so even if i start bills from 1 everyday, it wont make same primary key. I can do it manually but I want to make it automatically.

View 4 Replies View Related

Please Help Me God! Fake SS#

Oct 23, 2006

I have a datbase that accepts the company's unique ID like a Social Security Number. My problem is when I put orders using another table, a person can put in the person's Company name but with the wrong ID Number.

Example:

Name: Peter
SS: 475-061-1111



Now I make an order with:
Name: Peter
SS: 475-061-1112

Even though peter is in the main table with the SS# as a primary, a person can still put in another SS#. I been dealing with this problem for about 2 weeks and can't find no solution. Can someone please help me fix this so I can just have this database up and running. I have two tables, one with the client's Name & Number

And


The other table which just takes jobs. I just want the dataentry form not to allow new numbers made up. Just use the numbers that is already there connected to the specific name. Someone out there please put me out of my misery with an example if you can......

View 4 Replies View Related

Can I Add An Autonumber Field To A Query?

Sep 9, 2004

I would like to create a query that has a new autonumber field. Any suggestions or add-ins available? Thanks.

View 6 Replies View Related

Problem With Append Query And Autonumber Field

May 1, 2008

Hi everybody,

I am appending the information I have in one table to another. The first table's name is Videos and it only has 5 records. When I append the information from the other table which has some of the fields of the Videos table (but doesn't have a primary key), the new records in the Videos table have as primary key value (the autonumber field) values that start from 44699657. Why is this happening?

View 2 Replies View Related

Attn GURUS - Crosstab/Maketable Help

Feb 21, 2008

I have a recordset with 335000+ rows. The database contains 8 different columns. I have a series of queries that validate each column element. I then use a UNION query to combine the mini queries because the validation results is the same, as well as the query structure. The validation results can either be, "PASSED, FAILED, or DROPPED".

I am trying to create a crosstab query to display the COUNT of each occurence of validation, per query. The problem is, for each query (row) in the cross tab, the total of each query is not the same, and is less than 335000 rows. One query could show 319000, another 323000... I don't know why this is doing it, because if I run each query separately, it says each one contains 335000 rows, and each row has a validation result.

Any suggestions?

View 2 Replies View Related

How Do I Disable Append/delete/maketable Prompts?

Jul 19, 2006

I am basically making a form to streamline the processes and functionality of my database project, so basically it's just a form that runs queries.

However, whenever it runs an action query, it always brings up a yes or no prompt for whatever action it is doing. Is there any way to disable these prompts (i.e. default yes to everything) or is this just an annoyance I will have to deal with?

Thanks.

View 2 Replies View Related

AutoNumber Field

Mar 4, 2005

I have a table with 6000 records. The last autonumber is 8810 and now my next autonumber wants to start at 2752. Is there a way that I can renumber that entire field to number correctly? I have tried compacting and repairing the database. Your assistance is appreciated.

View 5 Replies View Related

Re-set AutoNumber Field

Mar 8, 2005

Good Afternoon Dudes

I have deleted all records from a database and wish to re-set an autonumber field back to 1.

At present when we start re-entering records it starts from record 769 where the old records finished.

Can you please advise how we can do this.

Thanks

View 2 Replies View Related

Autonumber Field

Oct 19, 2006

hi
I want to start value in autonumber field at certain number than 1
ex. start autonumber at 1000 then 1001 ......
how
thank you

View 2 Replies View Related

Help Please, AutoNumber Field

Sep 7, 2005

I have an autonumber field that somehow got reset back to one. Is there anyway to reset this number, I need it to be back around 1900.
This is a big problem because I use the auto number as an order number and also use that number to link the options selected to that order. Now that it has reset to one, it is picking up options from the original order number one.
Any suggestions?

Addtl Info. This is in an Order Table. When the order is ready for manufacturing it is assigned a serial number and the order is deleted from the order table and put into a production table.

View 8 Replies View Related

How To Renumber An Autonumber Field...

Oct 3, 2005

Hi

I want to renumber an autonumber field to remove the gap appear after deleting the record.

I know it is possible by deleting field and creating a new autonumber field having same name.

But all this I want to do with code.

I will be gratefull if any one help me.

Regards

:confused: Rahulgty

View 7 Replies View Related

Resetting AutoNumber Field???

Sep 15, 2005

could someone please tell how i can reset an autonumber field to start from 1.

basically i have created a table and carried out a number of test with useless data. now that i have the table set up the way i want it and i have tested the queries etc i want to delete all the current data in the table and begin filling it with correct data. however i want my primary id to start from 1 which at the moment it doesn't because i have just deleted 50 records.

thanks in advance

View 2 Replies View Related

Refreshing The AutoNumber Field.

Jul 9, 2006

I had a table with an ID field defined as AutoNumber. It contained a large number of records. When I deleted those records, and added a new record, it was alloted an ID which was an increment of the last ID when the Table was full previously.

I want that the AutoNumber ID be ReNumbered from start if any record is deleted.

View 4 Replies View Related

Setting A Field As An Autonumber.

Aug 28, 2006

I am creating a table with a field named Payment ID. I want the table to increment the number of this field automatically when the user is trying to enter a new record, i.e. set the field as an autonumber.

I know that this is very basic, my MS Access skills is really limited.

Cheers.

View 2 Replies View Related

Create AutoNumber Field

Dec 20, 2005

All,

I have trawled boards and sites, but cannot find the answer!

I have a make-table query, and I wish to create an AutoNumber field.

Now I know that if you put fieldname: "" , a Text field will be created and if enter fieldname: [] then a Binary field will be created.

Is there a code I can use to create an AutoNumber field?

Help appreciated!

Regards,

Jempie

View 5 Replies View Related

Copying A Autonumber Into Another Field

Apr 10, 2005

Hello

I am having a problem with my frmAddCustomer. I need it so when a new record is entered into tblCustomer (via the form) the autonumber made in CustomerID will be copied and entered into tblDelivery.CutomerID. Thus making a new record in tblDelivery. The form uses a query will all tblCustomer fields and tblDelivery's CustomerID.

How do i go about making it so when a new record from tblCustomers, the autonumber generated is automatically entered into CustomerID of tblDelivery (leaving other fields in tblDelivery empty ready to be edited at a later date)(also how do i make it so when I open up frmAddCustomer it goes straight to a blank record instead of viewing already entered customers)

Thanks

View 4 Replies View Related

Autonumber Field In Forms?

Feb 13, 2005

Hello- I am trying to create a database for a non- profit. They have events and workshops and want a numbered field for each entry in their registration form. Seems like a simple thing to do, but Im not figuring it out. Is there anyway to put an unbound field in a form that will autonumber each entry?
Thanks for any help!

View 5 Replies View Related

Declaring A Field As An AutoNumber

Jan 10, 2006

I am using Brinkster to do some ASP/MS ACCESS programming.

I need to add a field which increments automatically with every insert into the table.
I tried the following statement:
ALTER TABLE Jobs ADD jobid AutoNumber(4)

What is the exact syntax?

Thanks

View 1 Replies View Related

Relationship Using An Autonumber Field

Apr 3, 2006

What am I doing wrong that I cannot get this to work?

I have a table with Patient Details - the Primary key being called PatientID and this is an Autonumber.

I then have a table called Episode Details. I want them to be linked via the PatientID. When I set up the forms however, it won't work.(Relationship PatientID - PatientID one to many)

I think it is something to do with the Autonumber but can't work out what...

View 1 Replies View Related

Field: AutoNumber, Fractional, Incrementing

Aug 25, 2005

I have a table <Table1> with field <Cust_ID> with datatype <Autonumber, LongInteger,Increment>. It means that as new record is entered each Cust_ID is auto-generated with incrementing number (that is not fraction). Now, I want to create a field that will generate incrementing fractional AutoNumber as I go on adding new record. (e.g. 1st record: Cust_ID = 1.00000001, 2nd record: Cust_ID: 1.00000002, 3rd record Cust_ID: 1.00000003)

Any help is appreciated. Thanx in advance.
Prodigy.

View 3 Replies View Related

Lookup Field / Autonumber Woes

Jun 21, 2006

So, basically my database has quite a number of lookup fields in tables as there is much repeated data, each one references to a seperate table with an autonumber field (ID) and a text field (Value)

Currently I have column one (ID) as the bound column in such cases, as this is what the guy who started me on access said to do, and it's fine until I try and export any query with such a field to Excel.

I have found, through experimentation, that setting the 2nd column (Value) as the bound column allows me to export the values rather than numbers, but I don't know if this is a sensible thing to do? (ie, I don't know what other unexpected effects this might have)

Any guidance here would be very welcome, thanks,
Bogzla

View 8 Replies View Related

Copy Autonumber To Another Field In Same Table

Jul 31, 2006

I need to make changes to a table already containing data. Currently the autonumber field is simply there as a primary key, but I now wish to use it for another number field (Accession No) which was previously completed manually.

As this doesn't seem possible or practical (as I need the flexibility to overwrite the number sometimes), I just want the autonumber to also appear in the Accesion No field when a new record is added (but be manually overwriteable).

I've had a play with default values and lookups, but with no success, and haven't found anything on the forum. Where am I going wrong, or is this just not possible?

Thanks for your help.
Alison.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved