473,804 Members | 3,019 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Referral urls - counting hit in Access database

Hi Guys,

I have an interesting challenge:

We are about to begin building magazine adverts with specific query string
urls attached to a particular boat page which let us know which magazine url
was the referrer:

http://www.catamarans.com/charter/ba...atatonic/?m=cw

I would like to process this query and count how many times that url was
typed into the browser.

How does one implement a counter inside an access database to do
this.....for instance I could use a select statement to parse the
querystring before displaying the page but I am unclear as to how to ADD to
the Access field [fldTimesAccess]

m= Request("m")

Select Case CrewedCat

Case "cw" '//cruising world

Insert into Access database...

End Select

Could someone help me out here...this should be relatively straightforward
right?

Your help is appreciated.

Regards
Jason
Jul 19 '05 #1
4 1889
I would create a database with two tables.

REFERRER
CUST_KEY
CUST_DESC

HIT
CUST_KEY
HDATE - default to Now()

Put your customer key and information in REFERRER table.
Each hit will call an insert into the HIT table

This will allow more defined studies of information

Create a connection then a Command and execute an INSERT

Let me know if more is needed

-dlbjr

Discerning resolutions for the alms
Jul 19 '05 #2
Thanks dlbjr,

Could you confirm that Cust_Key is what I would refer to as a unique ID or
autonumber in Access

Thus:

REFERRER
Cust_Key Description
1 Sail Mag
2 Yacht Mage

HIT

fkCust_Key hDate
1 12 Nov 2003
1 13 Nov 2003
1 18 Nov 2003
2 12 Nov 2003
2 23 Nov 2003
1 1 Jan 2004
I am kind of unclear as to whether I should be incrementing a HIT counter
inside the database or in fact you are just inserting the key into the
HIT table and then will later use a query to tabalute and total the
insertions for a particular key.

One of the things I ponder is the possiblity that I need to connect the hits
to the particular month so maybe that is what your solution is giving me.

Could you elaborate further on how the two tables and future data mining
would work?

Thanks
Jason

"dlbjr" <do******@do. u> wrote in message
news:Avesb.183$ Qy4.14240@typho on01...
I would create a database with two tables.

REFERRER
CUST_KEY
CUST_DESC

HIT
CUST_KEY
HDATE - default to Now()

Put your customer key and information in REFERRER table.
Each hit will call an insert into the HIT table

This will allow more defined studies of information

Create a connection then a Command and execute an INSERT

Let me know if more is needed

-dlbjr

Discerning resolutions for the alms

Jul 19 '05 #3
Yes, an auto ID is great.
This is what the querystring from the referrer will send.

You stated "...in fact you are just inserting the key into the HIT table and
then will later use a query to tabulate and total the insertions for a
particular key."

Yes, this way you can predict which days have heavier traffic than others or
what hours produce the most hits. You get the idea.

-dlbjr

Discerning resolutions for the alms
Jul 19 '05 #4
Hey this works great!!!

I can now relate hits to particular month the advertisment was running.....

But, how would one use a query to tabulate a total per month.....Is this
quite simple to do?]

Many thanks for your help!

- Jason
"dlbjr" <do******@do. u> wrote in message
news:PIAsb.185$ Qy4.14147@typho on01...
Put these two files in a web folder and run the asp from the browser then
watch the data in the database.
This should get you going.

-dlbjr

Discerning resolutions for the alms

Jul 19 '05 #5

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

Similar topics

1
1905
by: Sourabh | last post by:
Hello, I am trying to write a VB.NET monitoring application for a MS SQL server. For that I need to know the following: 1. How do I count the number of read/write accesses per database on the server since the creation of the DB? 2. How do I get the last access time of the database ? Any inputs would be really appreciated.
8
1790
by: mgm | last post by:
hello, I have a query that is supposed to return only 1 record, however I recently found that because of an error in the database it can return more than 1. So what I need to do is capture if it is more than 1 record and alert the user to contact the database administrator. How can I get the count of records returned by a recordset? Is there no way besides looping through with a counter variable?
7
1259
by: C White | last post by:
A little while back I had a question about counting records and my example was something like this: in my database table i have the following records john ed john rick tom
1
1890
by: COVAD | last post by:
To Whom It May Concern: Good morning. I am Seann P. Courtney with Covad Communications and the reason that I am contacting you is because I am looking for a referral partner to do some business with. I will pay you $400.00, free and clear, if during the normal course of your days business you can refer a T1 line to me and I am cutting checks, free and clear, for up to $175.00 if you can refer a business class SDSL line. It should be...
7
8320
by: AES | last post by:
Encountered a URL containing a comma the other day -- the first time I've ever noticed that, so far as I can recall. It worked fine, however, and I gather commas are legal in URLs. Out of curiosity, did a quick scan of an ASCII file of the 542 URLs in my personal bookmark file and discovered exactly 3 that contained commas (two with a single comma, one with three commas) -- so I guess they're pretty rarely used, even if legal. Seems...
18
2948
by: ChadDiesel | last post by:
I appreciate the help on this group. I know I've posted a lot here the last couple of weeks, but I was thrown into a database project at my work with very little Access experience. No other employee knows anything about Access. I've searched Google Groups, and that has been a lot of help, but there are some questions that I just can't find the answer to. I'll try to take it easy on the group after this question. I have one more...
0
1075
by: Mark | last post by:
Hi, I have a client who needs a semi-dedicated hosting presence. Specifically, ASP.NET 1.1 and SQL server 2000 (Access via enterprise manager). I would also like a referral plan so I get a % of the monthly hosting to put toward my own hosting charges ;) Thanks John
4
4199
by: aaronfude | last post by:
Hi, Please consider the following class (it's not really my class, but it's a good example for my question): class Vector { int myN; double *myX; Vector(int n) : myN(n), myX(new double) { } double &operator()(int i) { return myX; }
10
4939
by: jflash | last post by:
Hello all, I feel dumb having to ask this question in the first place, but I just can not figure it out. I am wanting to set my site up using dynamic urls (I'm assuming that's what they're called, an example of what I have in mind is index.php?page=). However, I can not figure out how to do this. I will eventually want to use SEF urls, but for now I'll be content just to have the dynamic urls. If anyone can tell me how to do this, I'd...
0
9705
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10564
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10308
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9134
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7609
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
6846
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();...
1
4288
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
3806
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2981
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.