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

How to make number never go down?

Hello,

This question I have may be alittle more difficault. I have a report that shows all of the type of IDs my company has given out. But when they are terminated from the company the number goes down. what i need is a field were the number never goes down, and always goes up, showing me the over all IDs I have issued out. I really have no idea were to start with this, so if any one could help me that would be great. Thank You.
Jul 30 '07 #1
7 1213
abolos
65
Hello,

This question I have may be alittle more difficault. I have a report that shows all of the type of IDs my company has given out. But when they are terminated from the company the number goes down. what i need is a field were the number never goes down, and always goes up, showing me the over all IDs I have issued out. I really have no idea were to start with this, so if any one could help me that would be great. Thank You.

Can you please explain more about your question?
Thanks,
Abolos
Jul 30 '07 #2
missinglinq
3,532 Expert 2GB
Please do as abolos requested, with particular emphasis on how the ID number is generated to begin with , and exactly what you mean by the "number going down."

Linq ;0)>
Jul 30 '07 #3
NeoPa
32,556 Expert Mod 16PB
Firstly, please do as Abolos has suggested. If you reread your post you should get a picture of how little information it imparts. When you've done that try to rewrite it so that anyone reading it can get the same understanding you already have.
Having said that, can I hazard a guess at the sort of thing you're talking about.
You're looking for an ID scheme that DOESN'T re-use any previously used ID.
Does it also need to have a one-to-one correlation between IDs and valid users, such that the last one used should always be the total number ever issued?
Jul 30 '07 #4
I am sorry i can not give detailed information. But i can try to restate my question, maybe that will help. I will try to make this as simple as possible.

The following tables are the tables that matter in this problem:

tblAll:
EmployeeID - PK
Name
JobTitle
Has ID
CardID - FK

tblIDType:
CardID - PK
ID Type

I have a report that has all these ID types in it, this report counts all the IDs that are selected from a drop down menu in "tblAll". But I also need another text box in my report to count over all given IDs. Meaning that the number in this text box can not go down because it will be counting all of the IDs ever given from now on, so if some one quits I still have that number in this text box, if some on gets a diffrent type of ID i still have the old one in the text box. This is an over all count of all IDs put togeather

Example:
1) txtOverall = 2000
2) John Doe - Quits and is taken out of database
3)txtOverall = 2000 - does not go down.

I am sorry i can not give any more information, i have tried to put this as simple as possible. If you have any questions feel free to ask. I am not sure if this can even be done, i have tried to search the internet anything resembling what i am looking for but i could not find anything, if any one could help it would be greatly appritiated.

Thank You
Jul 30 '07 #5
Any one know how to go about this ?
Jul 31 '07 #6
abolos
65
I am sorry i can not give detailed information. But i can try to restate my question, maybe that will help. I will try to make this as simple as possible.

The following tables are the tables that matter in this problem:

tblAll:
EmployeeID - PK
Name
JobTitle
Has ID
CardID - FK

tblIDType:
CardID - PK
ID Type

I have a report that has all these ID types in it, this report counts all the IDs that are selected from a drop down menu in "tblAll". But I also need another text box in my report to count over all given IDs. Meaning that the number in this text box can not go down because it will be counting all of the IDs ever given from now on, so if some one quits I still have that number in this text box, if some on gets a diffrent type of ID i still have the old one in the text box. This is an over all count of all IDs put togeather

Example:
1) txtOverall = 2000
2) John Doe - Quits and is taken out of database
3)txtOverall = 2000 - does not go down.

I am sorry i can not give any more information, i have tried to put this as simple as possible. If you have any questions feel free to ask. I am not sure if this can even be done, i have tried to search the internet anything resembling what i am looking for but i could not find anything, if any one could help it would be greatly appritiated.

Thank You

Try not to delete the record, just mark it as deleted programatically. Add a field named Deleted and make its type Yes/No. When you delete the name then the Deleted will be Yes. And then make a query so that not to show you the Yes data. This will now show the deleted data for you, but will keep having it in its calculation.

Hope you are happy with this.
Abolos
Jul 31 '07 #7
Try not to delete the record, just mark it as deleted programatically. Add a field named Deleted and make its type Yes/No. When you delete the name then the Deleted will be Yes. And then make a query so that not to show you the Yes data. This will now show the deleted data for you, but will keep having it in its calculation.

Hope you are happy with this.
Abolos
Thank You. I thought that may be the only way to go about it.
Aug 1 '07 #8

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

Similar topics

3
by: Darren | last post by:
Please Help Me!! I've created a typical <form> and a <select> element. The options are created dynamically from my access database (using asp). There are about 70 options, and when you click...
15
by: Pasta Bolognese | last post by:
Open VS.2003. Click on a control on an aspx page in the HTML view. Does it tell me the pixel position on the page? Nooooooooooo.................
6
by: Penguin | last post by:
At some long ago time Steve Jorgensen answered thus: Subject: Re: How can I round a time? Newsgroups: comp.databases.ms-access Date: 1998/12/11 Access represents a date internally as a double...
1
by: Regnab | last post by:
The record's primary key is the report number. The form in which data is entered or modified has this Report Number at the top. I would like to know if I could use SQL in the VB code so that on...
10
by: Extremest | last post by:
I know there are ways to make this a lot faster. Any newsreader does this in seconds. I don't know how they do it and I am very new to c#. If anyone knows a faster way please let me know. All...
19
by: zzw8206262001 | last post by:
Hi,I find a way to make javescript more like c++ or pyhon There is the sample code: function Father(self) //every contructor may have "self" argument { self=self?self:this; ...
4
by: Gary | last post by:
I'm a bit confused hopefuly someone can help. I have a text file which stores names and an associated number. Each line in the text file represents one person, and a semicolon ' ; ' seperates...
3
by: =?Utf-8?B?Qw==?= | last post by:
Hi, I have a user control which I use on all my pages. The control is situated on the top of my page (sits on my master page). For some long pages the user has to scroll back up to the top of...
30
by: bdsatish | last post by:
The built-in function round( ) will always "round up", that is 1.5 is rounded to 2.0 and 2.5 is rounded to 3.0. If I want to round to the nearest even, that is my_round(1.5) = 2 # As...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.