473,396 Members | 2,018 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,396 software developers and data experts.

Numbering start with 1 each month for each Department

22
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.
Feb 7 '18 #1
4 1824
gnawoncents
214 100+
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.
Feb 8 '18 #2
Mafi
22
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
Feb 8 '18 #3
twinnyfo
3,653 Expert Mod 2GB
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.
Feb 8 '18 #4
NeoPa
32,556 Expert Mod 16PB
Try this article (Item Numbering Within a Group). It deals with exactly the sort of thing you're after I believe.
Feb 9 '18 #5

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

Similar topics

1
by: Niy | last post by:
how to get that with SQL query?
2
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...
6
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...
9
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,...
0
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%) ...
0
gemmountain
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? ...
3
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:...
1
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,...
3
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...
2
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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
0
BarryA
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...
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
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
jinu1996
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...
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
isladogs
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...

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.