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

counters

Hi i wonder if anyone can point me in the right direction.
I am trying to design a system using a barcode scanner to scan
membership cards, which pulls a specific record out of a table to
display as a form.So far this is ok what i want to do is record the
number of times this record has been accessed, and the last date it
was accessed on so i can keep track of attendance and card usage.I am
using a query with a filter to pull the specific record from the table
but as my novice status shows i cant work out how to log this event in
the specific table record.
Any pointers would be much appreciated.
Cheers
Mart

Oct 28 '07 #1
1 1417
fr**********@btconnect.com wrote in
news:11*********************@v3g2000hsg.googlegrou ps.com:
Hi i wonder if anyone can point me in the right direction.
I am trying to design a system using a barcode scanner to scan
membership cards, which pulls a specific record out of a table to
display as a form.So far this is ok what i want to do is record
the number of times this record has been accessed, and the last
date it was accessed on so i can keep track of attendance and card
usage.I am using a query with a filter to pull the specific record
from the table but as my novice status shows i cant work out how
to log this event in the specific table record.
Any pointers would be much appreciated.
Cheers
Mart
Basically what you want to do is get the existing attendance count
from the membership record, add 1 if it contains a number, or put 1
if it is null, and put the current date and time into the table.

Not knowing exactly what you are doing to retrieve the record, I'd
say the most probable way is to put the statements to update the two
textboxes with those values in the form's before update event, and
put a big "Save" button on the form

The before update event would simply contain the
update statements

me.txtAttendanceCount = nz(me.attendancecount,0) +1
me.dtLastAttendance = now()

and the button's code would be
me.dirty = false

But better than that, create a new table with 2 fields, the
membershipID number and the AttendanceDate.
Add a record for each attendance. This gives a list of who attended
what, which may prove more useful than just the count. You can also
get the number of events and the lastAttended date from this sub-
table by getting the count and max(attendanceDate) via Totals
query.


--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Oct 29 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: David Mitchell | last post by:
Hello group, I'm trying to write code to test an application we're developing. This application needs to store its own performance data in the registry, and we'd like to be storing quite a...
9
by: Carlos | last post by:
I'm responsible for the content in a call center's intranet site. There are approximately 600 pages on 7 sub-webs. I have access to the sub-webs, but I don't have access to the root web or web...
0
by: rob_c | last post by:
Hi, I've been working with the EIF for a few days now. One of the default event sinks provided is the WMI. I've played around a bit and can send events to the WMI. My question here centers on...
2
by: Don | last post by:
Hello! I am trying to write some code to access performance counters on a remote machine. Ideally, I would like to add a machine to a tree control (like the "Servers" view in the .NET IDE) and...
4
by: Chad Myers | last post by:
I'm instrumenting my app with a few performance counters and I'd like to ask you all for some advice on how to handle performance counter instances. I have a class library that is a base library...
0
by: Christopher Attard | last post by:
Hi, I need to create a dialog like the 'Add Counters' dialog box in perfmon. I'm using the System.Diagnostics namespace class in .NET and I've managed to do it. The problem arises when I'm...
1
by: db | last post by:
Hello, I am writing a utility to get the performance counters from a remote machine. Currently, I am usign the System.Diagnostics.PerformanceCounter class to retrieve these counters, but they...
7
by: James | last post by:
Hi Has anybody had any experience of ASP.Net performance counters not updating. In the performance monitor application when I try to add the groups ASP.NET and ASP.NET Applications the...
0
by: JackC | last post by:
Hi, We have an ASP.NET application with a (kinda shady) COM component that we don't know much about and don't have responsability for. But you know how it is - if the app. goes down its my fault...
10
by: Zytan | last post by:
I made a program using the Timer class, and I start the timer with Timer.Start(), but don't stop it with Timer.Stop(), and I assumed this was ok, but, Process Explorer informs me, after running it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.