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 Replies
ADVERTISEMENT
May 9, 2007
Hi,
The database I've inherited has a primary key autonumber set up which is randomly generating numbers. It also has another field which has yet to be used, of a clients reference number.
I thought it would make sense to use the reference number field as the primary key, as it seems redundant otherwise and it would give us another field to perform searches on (if we record a clients reference number on their paper file, then finding them on the database would be much quicker).
Because of the relationships in the database, I didn't want to remove the existing primary key as I'm afraid it would mess up the whole thing. I was wondering if there is a way of having the autonumber which is generated in the primary key to be automatically copied to the clients reference number field? This would leave the primary key intact but give us this extra level of information to search on.
Thanks.
View 1 Replies
View Related
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
Dec 12, 2013
I have a Form that has a subform and in that there is a subform that runs a query. I need to take the value of in one of the fields returned in that query and transfer it to a field in my original subform.
View 4 Replies
View Related
Apr 14, 2006
I didnt know whether to post this here on in the table forum, so sorry if its in the wrong place!!
http://x402.putfile.com/4/10309543998.jpg
http://x402.putfile.com/4/10309512643.jpg
Ok, so in the frist screenshot the green box is based off of the table labelled 3. The red box is comprised of the InvoiceID from table 1, ProductID from table 2 and name/price is drawn from table 3.
The green box is used to view products, the red is an invoice. How do I add the currently viewed product (in this case, a case) to the invoice? I need to copy the product ID from table 3 to table 2. How do I go about this?
Many thanks! :D
View 2 Replies
View Related
Sep 1, 2004
Hi All , Im still quite new to access and would like some help with the following
I have a sub form for a help desk database i have created which states the username and Pc name
i want to be able to press an action button that will copy these 2 fields from the sub form the the equivilent fields in my main form.
i guess i just dont want to have to keeping pressing Ctl c and v each time .
can this be done ?
many thanks in anticipation
View 1 Replies
View Related
Mar 1, 2007
Is there a way to make a button on a form that when it is pushed it copies one field from the previous record and then the rest is blank?
View 1 Replies
View Related
Dec 9, 2012
I am using access 2007 and cannot seem to find in the field properties.I need to input data in one field in a table and it appears in a field within a different table.
View 2 Replies
View Related
Dec 1, 2007
I have a main form with a field "Calibration Date" which shows the latest calibration date of a specific item. I have a subform that has a field "Cal Date" that is the latest calibration of this specific Item. In the Subform there may be multipul "Cal Date" enteries for that specific item but in the main form I want the "Calibration Date" to update to the newests Cal Date enetered into the subform.
View 5 Replies
View Related
Jan 26, 2014
I would like the text from the previous field Invoice_Contact copied into the field Invoice_Contact of each new record created. I think I can use CTRL ' - but would like it done automatically if possible.
Field location:
Form = PatientUpdate - Subform = F_Invoice - Field = Invoice_Contact
The form and subform are linked through: Pat_ID
The subform is based on the table called Invoice with Invoice_ID as the primary key.I tried several variations of this DLookup from examples I found on the web but the field comes out with "error" in it and its flashing!
View 14 Replies
View Related
Jan 23, 2008
Hi im new to msaccess so bear with me plz;
is there any way to copy data from the first column ie say the primary key which is a autonumber to the next column because i cant seem to have two autonumbers soi was wondering if it the next column would update as a new record is created
say coulmn 1 is ID column 2 is NameID
i want the autonumber generated in iD to appear in NameID
View 2 Replies
View Related
Apr 14, 2005
Hi
Forgive me - but i am new to db.
I have an employee field in my purchase orders from and when I do stock transactions - i have an employee field against each item in the purchase order. I would like to just copy the employee field from the purchase order form automatically next to each product listed instead of having to keep typing the same thing.
the reason i am doing this is because when people come to take stock out - i would like to see there name against each item in the products from so people can not not take more than they ordered.
thanks in advance.
View 4 Replies
View Related
Jan 15, 2015
I have one memo per change (user input)...I need to have the comment the user inputs to copy into other records that were queried. I tried insert. My coding does one of the records or all of the records ..I need it to copy just to the queried records ...and I have a query but no filter set.
View 4 Replies
View Related
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
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
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
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
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
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
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
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
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
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
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
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
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