Making Dispatch Notes - Generate Reference Number Using AutoNumber
Aug 3, 2011
I have made a database for a repair workshop, where you book in and book out repairs.
I am having a problem as we need to make a Dispatch Note daily with a list of all booked out repairs for that day and for that branch.
This is all working so far. However, we need to generate a reference number using AutoNumber (Wshop0001, Wshop0002, etc) and keep a record of this - how can this be done with keeping ONE reference number per day per branch?
View Replies
ADVERTISEMENT
Jun 10, 2015
Need to generate a unique reference number each record wise while data entering by a form. How to do this by using a command button ? After entering all fields related to the record, when click on the command button, unique reference number for that record need to be generated and save with all other data of the records. in a later event, need to recall the record by using this reference number and also need to make relation ship with some other table by using the reference number.
View 6 Replies
View Related
Oct 5, 2013
Basically what I have is a database for tracking/logging parcels that arrive to the office. I want to be able to generate a reference number based on the date of arrival: i.e. the reference number should be ddmmyy### where ### is a sequential number. I know that I could just use the primary key's autonumber, for the sequential number but if I do this then the sequence will not restart at 1 on each date and because we receive a lot of parcels the reference number will grow to be too big to print out on the collection slips in just a few months.
two tables (one with the date and staff on duty that day and the other with the parcel's info') with a one to many relationship
I also have a query (Named: FullLog) that picks up the following data from the tables:
Name - Description - Size - TrackingInfo' - Staff - DateReceived - Count
The field named Count is a DCount function that I used to find out the number of times each date is repeated. This is the Expression that I used:
Count: DCount("*","FullLog","DateReceived = " & [DateReceived]) [Note that DateReceived is first converted into a string using CStr()]
This is as far as I have been able to get, I have been looking for weeks for a solution to this problem but I have yet to find one. I don't even know if the DCount function is the correct way of doing it, I did read somewhere that this produces a very slow query.
Effectively what I want to be able to get is something of that resembles the following
DateReceived - ReferenceNo
051013 051013001
051013 051013002
051013 051013003
061013 061013001
061013 061013002
071013 071013001
071013 071013002
071013 071013003
071013 071013004
071013 071013005
081013 081013001
081013 081013002
091013 091013001
101013 101013001
View 6 Replies
View Related
Feb 24, 2006
is there anyway to have the database autogenerate a random 8 digit reference number for each record.. this of course must be unique..
maybe something like
7C7CYU99, or HJUHU889... im sure you get the picture.
View 2 Replies
View Related
Feb 4, 2005
Hi all,
here's me again,
I have a question, I'm trying to generate an autonumber but of 4 digits, for example
the first one is: 0001 and autonumber 100 is: 0100, and so on
how can I do that?
any help will e very much appreciated!
Best Regards
CS.
View 4 Replies
View Related
Jan 25, 2005
Hi there
I would like to build a database whereby when I create a new record it generates a new reference.
What I'd like is say the first record to be: SNN0001 and then when I create a new record the next record would be: SNN0002
How in the heck do I do this :confused:
Thanks for any help
Jools :D
View 5 Replies
View Related
Aug 5, 2014
I've got a table, where each record is a group of students. So the fields include Student1, Student2, Student3, etc. I know this is bad database design, but I've done this because I want the group number (primary key) to be automatically generated.
Now, I want to add more information for each of these students as if they're seperate records but I also want an autonumber for the group.
View 5 Replies
View Related
Sep 30, 2014
use an account reference from one field in a table on a second table and add a number after it... e.g.
Table 1 Table 2
PEFA PEFA/001
PEFA PEFA/002
PEFA PEFA/003
PEFA PEFA/004
and so on...
View 2 Replies
View Related
Jan 21, 2014
I have a form [IUDATA]
I have a add record button.
I have a date field [DATEIN]
I have a text field [DRPNO]
If the [DPRNO] field is empty, I would like the user to have the [DPRNO] field be automatically populated after the user enters a date.
I'd like the format of [DPRNO] to be "dpr YY-XXX"
Where:
YY is the year of the [DATEIN] field and
XXX is number of records in that year.
So for example, if it was the 4th record with a 2013 date the [DPRNO] would be dpr 13-004.
View 12 Replies
View Related
Nov 4, 2013
I have a form where we fill in information for supply of equipment to employees.
Each item must be signed for on a printed report.
I am encountering problems trying to create enough rows in my report detail for each signature of the items supplied.
For example, on the form I will select the "equipment" - 4 hats supplied and 3 boots. On the report I want the equipment set as the group and the detail to be a number or rows which equals the number of selected items. therefore under the Hats group heading I want 4 blank rows which are made up of 3 text boxes - Print Name, Signature & Date and another group heading for boots but with 3 lines.
View 11 Replies
View Related
Jun 2, 2014
I'm trying to get an invoice number field to auto generate the next number, keeping the format as "00000"...this is what I have, which gets the next number but drops the leading 0
Code:
Private Sub Customer_AfterUpdate()
If Len(Me.[InvoiceNumber] & vbNullString) = 0 Then
Me.[InvoiceNumber] = (DMax("[InvoiceNumber]", "[tblInvoiceNumber]") + 1)
DoCmd.RunCommand acCmdSaveRecord
End If
End Sub
invoice numbers are 04024, 04025 etc...how I keep the formatiing?
View 5 Replies
View Related
Dec 10, 2013
Autofill text field using combo box selectionHello,
I'm trying to autofill a field on a form using MS-Access 2010 Web version sharepoint using macros without coding.
The form has an existing Combo Box field called Segment, using the row sources "REW", "WTT", "DBM".
A user begins filling out the form and eventually selects the Combo Box for Segment and selects any one of the segment no Multiple selection
There is another text field, which is actually alpha-numeric, called Job_No. I want this to autofill based on their Segment selection, using this format:
REW-YYMMDD-TTTT, or REW-131210-20001 for example, for today with the time displayed as military time and last Job No.(20001) for REW and Also for WTT (30001) as starting number.
View 1 Replies
View Related
Mar 17, 2014
I am working on a form and need it to be able to generate a random number to use as an invoice number. The only parameters i need it to meet is that it is at least 5 digits in length. I was hoping i could use a button to make the number generate in a separate box.
View 5 Replies
View Related
Dec 8, 2005
The title probably doesn't give an idea of what I need, so here goes.
We currently have reference #'s for our bills that include the date requested in mmddyy format, the first 3 letters of the customer, the initials of the order taker and finally a sequential number to show the sumber of bills that day.
example: 120705SEAGMM02 2nd order taken by GMM for Seagate on 12/7
120705SEARLH01 1st order taken by RLH for Seagate on 12/7
I want to generate this number automatically based on the date entered and the initials given of the user. We only deal with one customer at our desk so that will always be "SEA".
I have a query that generates the first portion (date, customer, and initials):
SELECT Format([REQDATE],"mm") AS [Month], Format([REQDATE],"dd") AS [Day], Format([REQDATE],"yy") AS [Year], Format([REQDATE],"mmddyy") AS [Both], [Both] & "SEA" & [PickUpReqData]![INITIALS] AS REFNO
FROM PickUpReqData;
But I can't seem to get my head around the part of generating the number. I know I had done this in a database I created 2 jobs ago but all my files were flooded out in Katrina. (I have since relocated to Atlanta, although I'm not looking for sympathy. But I will take what I can get!)
Anything to point me in the right direction will be appreciated. I am looking to have this on a form and feed the REFNO field in the PickUpReqData table.
Thanks.
Gary
View 3 Replies
View Related
May 17, 2007
hey, where can i set or how can i make the access automatic generate the the number. like i want it start from:
Account number: Ra-b200
Account number: Ra-b201
Account number: Ra-b202
cheers
View 1 Replies
View Related
Aug 29, 2006
Hi guys/gals
My primary key, RefNumber, is a sequentual Autonumber field. I want to creat my own Custommade autonumber field, but the catch is:
My autonumber field should have any of the following (selectable by the user from a combo box from a Form) attached in front of the number: DPR,DPZ,DFE,DGL,DMI,DGJ or DPE.
ie: the autonumber is at 14. The user selects DFE, but this is only the seconde choice made of DFE.
So the end product should be: RefNumber = 14
.........................................DistrictR efNumber = DFE2 or DFE002
Help please?
Thanks in advance
View 5 Replies
View Related
Feb 2, 2005
can I make a field that can auto-number which the format that I want??
As I know that there is two format for auto-number
but I don't like them
I want to number my own format
like
XXX-YYYYMM-ZZZZ
XXX is the category number that would be selected in the form connecting to table
YYYYMM is the date year and month
ZZZZ is another auto numbering
Can I do so
View 1 Replies
View Related
Sep 13, 2006
i have a table where one column has numbers such as 6104003 and i would like another column to recogzie this number and make a new string in this format 61P04-003 ajacent to it. can i do that in a table or does it have to be a querie? and the bigger question is how do i do this :confused:
View 3 Replies
View Related
Apr 18, 2007
:mad: I know that there is the auto number function, however i would also like it to generate an ID with charaters. In my table theres a first name and surname.
Say for example: Harry Potter, i'd like the ID to generate HP001
then say there's another guy call Harriet Potter, i'd like the it to generate
HP002 insead of HP001.
appreciate any help, and if it's impossible just let me know thanx!!!!:)
View 2 Replies
View Related
Nov 30, 2004
I am working on a database for our health services office, which includes a table "Tbl_Patients"
THe Key in this table is a number the office will enter. They have an ID number for existing patients that they will use when they come in.
However, should a new patient come to the office, they would like for the database to assign a new number, the first one starting at 4000.
I would like to put a command button on the new patient form that says "Assign Number" and have that number generated and used as the new ID.
THis may not be real clear, so ask if you have any questions
Thanks in advance!
dspinner@saintmeinrad.edu
View 1 Replies
View Related
Jan 18, 2007
Hi i am new to Ms access, and i wanted to know how i could go about to create an auto generating number field that contains letters and numbers, e.g. a computer serial number.
Your help would be most welcomed
View 1 Replies
View Related
Jan 7, 2014
I am trying to set a form that when you add a new report it will auto poulate with a number like this S44/13/001. I have not had formal training in Access.
The field name is S 44 NUMBER.
View 2 Replies
View Related
Apr 26, 2007
Hi, very new to Access and wanted to check something was possible before i proceed with it,
basically i want to assign a reference number to my records automatically based on data that has been entered by the user, looking something like this
AE/13MAY07/01
AE is a standard thing and will never change.
13MAY07 is 13th May 2007, which is a date which has been entered by the user for when a specific piece of work is to start. There will be a Yes/No box next to where they enter the date saying whether or not they want a new reference number assigned. If they select Yes, the reference number will be populated with the date specified.
01 will be a number which goes up in increments of 1 based on the MAY07 detail. The number will start at 01 for every month/year, eg
MAY07/01
MAY07/02
JUN07/01
JUN07/02
MAY08/01
MAY08/02
Hope someone can understand what im trying to do and can help.
Thanks in advance :)
View 1 Replies
View Related
Dec 7, 2007
Hi there
Just a quick problem i need a solution to.
I just created a database, but i want it to automatically created reference number for example. LAPSS001 n continue creating
any tips pls?
View 3 Replies
View Related
Oct 4, 2006
Hi Guys
Dont quite know if this is the right place to post this but here goes any way
Im creating a database where customers can submit a question, it centres around a form where a user enters various information such as initials, telephone number, and various selections from from down boxes.
I have placed a button at the bottom that saves the record, what i want is when that button is pressed for a box to pop up giving the user a unique reference number which is made up of the information they have entered, such as
FIRSTINITIAL-LASTINITIAL-DATE-INCREMENTALNUMBER
I want this number then to be stored along with the record so it can be searched for by this number.
I have done searches for similar questions but cant find one that matches what i want to do
Thanks in advance
View 2 Replies
View Related
Jan 30, 2005
Hi All,
I'm designing this database, in which, I have to give each record a unique random (or sequance) number of 5 digits, giving that the first digit must be retrived from another field.
Please Help, I need this ASAP!
Any help will be very much appreciated!
Thanks,
CS.
View 1 Replies
View Related