I have a form name form 1 with combo box name combo1 which contain list of Departments e.g. Dept A, Dept B, Dept C etc.
And I also have table named cashbook with date, Pv no, name of beneficiary and amount
I want to start numbering from 1 each month for each department when adding new record to the table. Pv no is the field for the numbering. Please help.
4 1824
Mafi, welcome to Bytes! We would love to guide you to a solution, but need some clarification. When are you trying to number the records? What would a sample table look like with the information filled in? Are you saying that the first day of each month, the numbering for each record for each department starts over at 1 then increments by 1 (1,2,3,...) for each additional record that month?
Help us get a better idea of what you're trying to do and we'll be glad to work with you toward a solution.
Ok thanks for the reply
Yes I want to start the numbering first day of each month of the year, the numbering for each record for each department starts over at 1 then increments by 1 (1,2,3,...) for each additional record that month with out duplicate.
The Table name is cashbook1 and it’s format is
Date, Pv no i.e the number field, Name of Beneficiacy and Amount paid
Form1 format is
Combo1 at the form header which contain the Department list that lookup in department table
Then payment command that open payment form that I will be entering the payment detail which is a query generated from Cashbook1. Thanks
My initial thought would be that whenever you create a new record, you search to see if any records exist for the current month. If so, then the current record would have an ID which increments the count of those records by one.
Relatively simple in concept, but without greater details, this is just theory.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Niy |
last post by:
how to get that with SQL query?
|
by: Elasho |
last post by:
I have a report that groups data on an Area, the report is set to force a
new page for each Area within the report.
Each Area will have 1 or more pages.
Is it possible to make the page...
|
by: Kd |
last post by:
I have the OrderNo set as the following
Right(Format(Date(),"yyyy"),1) & Format(Date(),"mm") &
"-"Format(,"000")+1
This works great until
I get to a new month and need the numbers to reset like...
|
by: boliches |
last post by:
I have a seperate table to generate consecutive numbers. Using "Dmax" to find the largest number to increment .
My problem is that I want the number to begin at 1000 at the start of each month,...
|
by: abbaskhan |
last post by:
i need to know (%) percentage or rate of each department sahring salary from the total salary
eg total salary is 1000
dept a=200
dept b=350
and dept c=450
eg (then 200/(1000)*100=20%)
...
|
by: gemmountain |
last post by:
Hi, does anyone know how to use Word Automation to insert page numbers for each section in a Word document, and the numbering scheme of each section is independent, not the same as previous?
...
|
by: Daniel Key |
last post by:
Hello All,
I have searched for this all over without success.
I am using Access 2007 and I have a table named tblReadings with 4 fields, Name, Date, Reading1, Reading2. The data is as follows:...
|
by: matt753 |
last post by:
Is there any way to change the colors of different lines in a label/textbox?
For example, the default text color is black. I want to have the first line of the label text black, the second red,...
|
by: Bruce927 |
last post by:
I have a report in access that is grouped by Department. but I want to summarise the contents so that I can count the number of Departments in the report, evey method I have tried has yielded the...
|
by: YasanthaBandula |
last post by:
Hi. i am Yasantha.. I have a Access 2007 database.. This is fields.. Child ID,Child Name, DOB, Admission date, Departure date .. So i want a create query for get count values in .How many Children...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
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...
|
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,...
|
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...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
| |