Counter (97)

Oct 31, 2005

I have an existing database, in whichi I've been asked to implement a counter, of sorts, which could count a store the number of times the database has been opened (including reports being viewed) , in a month. (I'm using access 97). Can this be done? How would I accomplish this?

View Replies


ADVERTISEMENT

Add Counter To Query

Aug 18, 2006

Hello. I'm trying to add a counter to the fields of a query. Purpose is to have a second query choose from this a selected record and next x records, which, of course have been already sorted by first query itself.
I thought the simplest way was with a simple automatic-generated counter, but perhaps I'm making it complicated and there's a simpler way. Any idea?
thanks

View 3 Replies View Related

Record Counter

Feb 26, 2005

Hey guys,

I have a questions for all you experts out there. I need to create a record counter. I have found documentation on how to create a simple record counter, but of course it needs to be a little more complicated than that.

I need to beable to count the records that contain a certain value in a certain field. For example, I need a count on all records which contain the value "Orland" and so on.

I assume this is do able. Just dont know how.


Any help would be appreciated!
Mateo

View 1 Replies View Related

Counter Creation

Jun 20, 2005

Hi everyone,

Here is my problem:

I Have a form that shows bills in a continuous form. My problem is that I want to put a textbox or a label that will display a kind of counter for each bills. For example, If I have 3 bills to display, I want my label or textbox to display 1 for the first bill, 2 for the second, 3 for the third, and so on.

But I don't know how to do that with a continuous form.

Could someone help me, please...

Thanks in advance!

View 1 Replies View Related

Counter Text Box

May 26, 2005

I have a counter text box that was set up exactly like the help instructions say to set it up and it is not counting correctly. I have it set up to where it is counting subgroups in the report. It counts for if one record has one or two errors, but I have one record in there that has 3 errors and it says that it only has two errors. Can anyone explain this to me?

learnasugo

View 2 Replies View Related

OnLoad? And Automatic Counter

Apr 27, 2005

a couple of questions...

1) what can i do in order to get a form to open when a database is loaded?

2) what is the automatic counter?

thanks in advance

View 4 Replies View Related

Counter Wont Update?

Oct 19, 2005

Hey all, here is my problem. I have a form with my 5 different counters on there and well they are not updating. I can update them on the main page but not on the other pages. I have a page called PID where there are 4 command buttons and counters. I click on the first command button, and add a record there now I would go back to the main page PID and the counter needs to update. How do I do this?? the code I have for to create the counter on the main page is as follows, However I need to enter the building form, and add or delete a record and have the counter on the main page update once finnished with that form. I hope I explained this good enough for someone to help. Thanks in advance.

'Building recordset
On Error Resume Next
If bdg.EOF And bdg.BOF = True Then
bdgcount = 0
Else

With bdg
.MoveFirst
.MoveLast
bdgcount = .RecordCount
End With

End If

View 7 Replies View Related

Counter Become Random After Importing

Jan 21, 2008

Hello all

this is my first post, so i hope i'm in the right bullettin.

I need help with this problem:

I have to work on this mdb that has been imported from Access 2000 to Access 2003. The guys did it some months ago, and of course they deleted the old .mdb and there are no backups.
However, the db still works, except that the ID of some tables are now "random id" than "incremental id", and since they used it for some months, now they are full of new records with random IDs.
Since they use THAT id for internal use, you understand that is not very easy to communicate stuff like "please send me document # -3189175187" and so they asked me to get it back to incremental, i tried from the table menu to change the dropdown, as i thought it was that easy. Bad luck, access now complains that the data aren't now contiguous (might be different error, it's a localized version, so i don't know how it is the exact error message, sorry), and i'm not really sure on what to do to avoid problems.

I've explained the best way i could, so if you need more info just ask, thanks everyone in advance!

View 1 Replies View Related

Record Counter Problem

Nov 16, 2005

Hi - I'm fairly new to Access and have jumped in head first. I do not know much about it, but I am very familiar with the other MS programs. I also don't know anything about visual basic.

I found an article online that described how to put in a custom record counter by using the Oncurrent Event. I have a form with a subform and I'd like have a custom record counter on both, however, when I open a new record, I get an error telling me there is no current record. This is more a problem for the subform, as the message pops up repeatedly until I put something into it to make it a current record.

The error is run-time error '3021': No Current Record.

This is the code that I used (keep in mind that I only copied this and used it, I didn't write it):

Private Sub Form_Current()

' Provide a record counter for using with
' custom navigation buttons (when not using
' Access built in navigation)

Dim rst As DAO.Recordset
Dim lngCount As Long

Set rst = Me.RecordsetClone

With rst
.MoveFirst
.MoveLast
lngCount = .RecordCount
End With

'Show the result of the record count in the text box (txtRecordNo)

Me.txtRecordNo = "Record " & Me.CurrentRecord & " of " & lngCount

End Sub


Any help is appreciated. Thanks!! :D

View 11 Replies View Related

Data Type - Counter

Jul 16, 2005

Hi folks,

can anyone help with what is probally a simple task?

How can I find the Data Type Counter in Access 2003? I am not sure entirely sure if this version is supported, if not what else can I use as a substitute? This is what I am trying to acheive:

http://support.microsoft.com/default.aspx?scid=kb;en-us;245074

I would be greatful of a response.

regards,

Steve

View 2 Replies View Related

Putting A Counter On A Form

Sep 16, 2007

Hello everyone, new member here. I am in charge of a student sign in sign out database at the college where I work. This database has two forms and one table. What I would like to do is include a text box on the first form, which is the sign in form that will display a running total of the students that are signed in. This text box should count 1, 2, 3 etc. each time a student clicks the sign in button. Thanks for the help

View 4 Replies View Related

Queries :: Assign Value Of Row Counter?

Oct 1, 2013

I have an export query that has number of distribution and CM distribution for invoices generated. The objective is to count the number of invoices based on the account number for each customer ID. Since the table has no primary key, the I assigned field number of distribution to 0 in hopes the counter will assign the value of the row number. The attached file shows how the current export displays and how it should display in the highlighted correct way section. I tried COUNT and DCOUNT methods which is the current setup, and they aren't working. This will eliminate the need to go into the file and change the 2 fields.

View 2 Replies View Related

Error In Automatic Counter After Compacting

Jan 9, 2006

After compacting my Access2000 database it usually is impossible to add new records. The automatic counter does not continue with a new value but seems to have "forgotten" some of the recently added records and tries to use a value that is already allocated. After pressing <ESC> the next value is applied and so - after adding and escaping the appropriate times - it finally reaches a valid new value and the record is accepted. Ugly workaround. Any known solution?

View 2 Replies View Related

Incrementing Counter And Record Deletion

Apr 1, 2007

Hi,

The user wants all of the records in the database to have continuous numbering. I have used AutoNumber in the past but if you delete a record, it produces gaps in the numbering.

I was wondering if there is a way to number the records so they are always numbered continuously (1,2,3,etc.) even if some record is deleted.

I have tried using the following:


Set db = CurrentDb()
Set recordlist = db.Openrecordset("SELECT Max(tblContactHistory.ItemID) AS MaxID FROM tblContactHistory")

ItemID = (recordlist!MaxID + 1)

recordlist.Close
Set recordlist = Nothing


but I still cannot get the records to have continuous numbering after a record is deleted.


Any helped would be appreciated.

Thanks!

View 1 Replies View Related

Date / Time Counter Problem

Jul 16, 2007

Hi all, i trying to design a date / time (hrs:mins) down counter. I want to put say my holiday date e.g 27/07/07, and then the access form will show how many days hrs and minutes left from the present date /time to the start of holiday. How can this be done easily? Thanks

View 3 Replies View Related

Reset Field Counter On Form

Aug 29, 2005

The problem that I have is that when I add a new field to my form at runtime I get the following error
Runtime Error '2424'
The expression you entered has a field, control, or property that Microsoft Access can't find.

This error appears when I try to update any field.
I posted this before and was informed that access has a field counter limit up to 750 on a form, this includes fields which were deleted or hidden. I dont deliberately add and remove fields, but this is the main form in my database so it is not unbelieveable that this may be at the limit and this is why the error is occurring. Does anyone know how to reset this?, or what I should do to get around this.

Thanks

View 2 Replies View Related

Forms :: Automatic Counter Resets Each New Day

Nov 13, 2014

is there anyway to make a counter field that is automatically filled (1,2,3,...) rather than filling it manually and also it resets each new day?? I'm not talking about autonumber field because of its nature also because I use it as a uniqe field "VisitID",

View 9 Replies View Related

Tables :: Autonumber Counter That Starts From 1 Each Day

Nov 11, 2014

I made a simple access project and I want to make a count for my visits, this counter MUST starts from one each morning "every new day", I use autonumber field to give each visit its unique code, I'm ok with that, but i need additional counter that resets each new day,, i watched some videos for making the autonumber starts from different number like 1000 for example using Append query but i didn't figure out how to use this method for resetting counter everyday.

View 6 Replies View Related

Queries :: Record Counter In Query

Dec 11, 2013

In my query called "test" I have the following fields: EmpID & DEPT, below is an example.

EMPLOYEEDEPTcounter1016321101101632125210163222033557031501355703120235570313033557031404

I would like to add a column to my query called "counter" and count starting with 1 each time the employee number is listed, when the employee number changes I would like the counter to start over again at 1 and continue this throughout the query.

View 13 Replies View Related

Modules & VBA :: Custom Record Counter Of A Form?

Jan 27, 2015

I have a custom record counter on a form using the below code:

Private Sub Form_Current()
If Me.NewRecord Then
Me.lblRecordCounter.Caption = _
"Record " & Me.CurrentRecord & " of " & Me.Recordset.RecordCount + 1
Else
Me.lblRecordCounter.Caption = _
"Record " & Me.CurrentRecord & " of " & Me.Recordset.RecordCount
End If
End Sub

I think at some stage the form was saved with a filter on and this may be causing the issue. The problem I have is:

There are 1749 records. Everytime I open the form the custom record counter displays "Record 1 of 501". The built in record counter shows 1 of 1749. The moment I hit the next record arrow the custom record counter displays "2 of 1749" and if I go back again it displays "1 of 1749.".

I know it's a filter causing the problem because I have a macro that does a clear search. As soon as I hit the clear search the custom counter goes back to "1 of 501" again (even though the built in one stays at 1 of 1749).

I have Filter on Load set to No.

what I am doing wrong?

View 13 Replies View Related

Tables :: Custom Counter In A Appended Table?

May 14, 2014

how can i make a custom counter in a table where records are appended from another table.

i have already used custom counter method in my database before by using this technique.

[URL]

but i want to make counter in a appended table.

View 3 Replies View Related

Modules & VBA :: Create New Counter On Customer Form For Each Day

Apr 6, 2015

I need Create a new counter on my Customer form for each day, using an Autonumber and print it

View 6 Replies View Related

Database Does Not Want To Overwrite Counter Value In Count Table

Aug 4, 2011

I am trying to add a feature to my database that counts the number of times that the main menu is opened (I modified this form to always stay open in the background in order to get an accurate count) just out of curiosity. Right now I have a table called "Count Table" with a field called "Counter" on it. This table acts as the control source on my main menu. The main menu also has a text box called "Page Counter". The "On Open" code looks as follows:

[Page Counter] = [Counter] + 1
'This line seems to work, page counter displays 1 with counter set at 0
[Counter] = [Page Count]

'This is where I run into trouble. The database does not want to overwrite the Counter value in the Count Table.I tried doing a similar setup as shown above using the Dmax function but had the same outcome.

View 5 Replies View Related

Field Counter, Display No. Of Occurences In A Table On A Form

Oct 5, 2006

hi,

in my table i have a customer id number.

each job will have one customer id number.. and customers will have many jobs to their id

i simply want to display on my form the number of times that customer's id has appeared in my bookings table.

eg.. a customer has used our services 25 times.. (so obviously their customer id is found 25 times in the booking table as a foreign key)

so can i just place a control on my form that displays this value (i presume it is some kind of counter)..

so i will know on my customer form how many times they have been included in a booking record

View 3 Replies View Related

Tables :: Can Set Auto-number Counter On Computer To A Chosen Value

Jan 29, 2015

I am having is that the auto-number value on his machine is different than on mine so anytime I try to add data in testing, it tries to create a primary key value that already exists in the table.Can I set the auto-number "counter" on my computer to a chosen value so I don't have these issues?

View 14 Replies View Related

Forms :: Create A Counter To Log How Many Times A User Login To Database

May 22, 2013

I have made a very simple log on form that requires the user to type in a user name and password. The user name and passwords are stored in a table. New users are added to this table to allow access to the database.

Is there a way I can add a counter to see how many times a particular user has logged onto the database?

Is there a way to make the password expire every 365 days requiring the user to reactivate their account and log in details.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved