473,657 Members | 2,535 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Query and display record number only in a webpage

I'm writing you from Alajuela, Costa Rica. It's 4:30 in the morning
here and I'm reaching a point of pure desperation as I've been
searching the internet all night for a solution. I am not an access
wizard. I just started looking at it actually because I'm trying to
learn about asp pages and storing form information.

I'm trying desperately to find a solution to displaying ONLY the record
number of the last entry into the form. I'm trying to setup a page for
a ticket raffle. The people fill out their information on the form and
click send. I then want a separate webpage to display the ms record
number of that entry. When we reach 100 entries the draw will begin.
So this way anyone can log onto the website and see how many entries
(or ms records) have been entered so far without seeing the personal
information (name, address, phone, etc.) of the people entering their
data for the raffle

The idea is they will enter their information into a FP2000 web form.
Everytime someone enters their information and clicks send, there
should be an update sent to a seperate page that tracks the count of
entrants. Kinda like McDonalds clicker of how many burgers sold thing.
Anyone logging onto the site will know what number of entries we're
at.

Please forgive my writing. I'm usually so much more coherent. I'm
just exhausted right about now.

T.I.A.
Athena

Jan 6 '06 #1
3 2560
I don't know much about data access pages through MS Access, but can't
you just use some simple SQL here? Something like:
SELECT Count(tblEntrie s.ID) AS NumberOfEntries FROM tblEntries

That would give you the current number of entries. If nothing else, you
could create a table to hold just that number and use an UPDATE
statement to change that number when the user adds a new entry.

Jan 7 '06 #2
Red
To quickly get the record count of the table you are working in, use
the "recordcoun t" property of the recordset....

i.e.
dim RS as Recordset, Totalrecords as Integer
set RS = currentdb.openr ecordset("Your table name here")
totalrecords = RS.recordcount

Jan 7 '06 #3
Recordset.Recor dcount doesn't always return the correct count, though.
I've seen many situations where the RecordCount property returned -1
even though I could iterate through the recordset with no problem -
i.e. there were 20 or so records in it. One thing I've seen suggested
is to call Recordset.MoveL ast and then Recordset.MoveF irst right away
so all available records are iterated through, which apparently causes
the RecordCount property to contain the correct number.

Jan 9 '06 #4

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

Similar topics

2
2927
by: lawrence | last post by:
A very strange bug. www.monkeyclaus.org is run by a cms I'm developing. One of types of users we allow is "justTestingTheSite", a type of user I developed to give demo's to prospective clients. The purpose of this level of security is to let someone log in and see everything as if they were root, and yet not be able to update or delete anything, as they have no real priveledges at all. I just logged in as root and created such an...
0
1248
by: John Macon | last post by:
------=_NextPart_000_04B4_01C36308.415CE100 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, Long time reader, first time poster, I hope that I get this right. I am setting up a database that reflects a relationship between two =
3
14119
by: John Ortt | last post by:
> I have a table of dates in ascending order but with varying intervals. I > would like to create a query to pull out the date (in field 1) and then pull > the date from the subsequent record (and store it in field 2). > > I would like to run a query that returns all the data in the table plus the > record number, in a similar sense to the getuser() command to get the User's > Identity, I would like a GetRecord() command.
6
2071
by: B Love | last post by:
I am wondering if I can have a dynamically generated report based upon the results of a query (in Access2000). Any ideas? Related to that (if that cannot be done) can the output of a query generate a set of records in form view. ( The second request sounds even more impossible to the first!) . Thanks for any insight you can share with me! ~Bruce
2
2537
by: Willem | last post by:
Hi there, I'm sort of new with doing much record manipulation with queries. Up till now I've been programming VBA and doing record looping to get my results. This works fine but tends to get very, very slow as the number of records grows - somewhere in the number of 5,000,000. I imagine queries are much faster but am not quite sure if queries will do the trick. My problem:
1
6569
by: Big Time | last post by:
I've got a crosstab query that counts the number of values in one of my tables. However, rather than giving me the number of instances of each record, what I would like is for each value to display, separated by a comma. For example, in the query is a row is named BC and a column named Vancouver, it currently displays "4" for the number of instances that Vancouver appears combined with the BC field. However, what I would like to display...
5
4136
by: Bob Bridges | last post by:
Start with two tables, parent records in one and child records in the other, a one-to-many relationship. Create a select statement joining the two. Display the query in datasheet mode. When I delete a row, only the child record is deleted from the source tables; the parent record is still there...which is what I wanted. Now display fields from that query in a continuous form. When I delete a record from that form, one of the child...
3
3180
by: BOBss | last post by:
I am using ASP with VBScript. I want to query an access database username field, and display the output as a hyperlink on an a webpage.The webpage will display all records. I then need to be able to select a given record(hyperlink), and display all of the fields for that record on another webpage so I can execute some code against it. Can anyone point me to some sample code so I can get an idea of how to accomplis this? Thanks in...
1
1974
by: Andy_Khosravi | last post by:
Background: Access 2003 (converted from A97 DB recently), database is split into FE/BE with the FE residing on client machine. I've got a question about how I can possibly optimize a query I've built. This may seem relatively straight forward to some of you more experienced programmers, but I'm almost entirely self-taught. This means that I have some gaps in my knowledge and sometimes go about doing things the hard way never knowing...
0
8726
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8603
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6163
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4151
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1944
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1604
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.