myatia
Programmer
- Nov 21, 2002
- 232
Hi, all,
Does anyone know how to access a temporary table in FoxPro 6 via ADO connections?
I am currently tracking how many people log into my website, and I would like to find out how many people log in how many times. In other words, I want to know the number of people that log in 1 time, the number that log in 2 times, the number that log in 3 times, etc. I then want to group this data up by month.
From the command line in FoxPro, I can run the following queries to get this info:
But, if I try to execute these queries like so:
I get an "temp_logintrack.dbf not found" error when I try to execute query2.
If anyone has any advice, I'd really appreciate it! Let me know if you need any more info.
Thanks,
Misty
Does anyone know how to access a temporary table in FoxPro 6 via ADO connections?
I am currently tracking how many people log into my website, and I would like to find out how many people log in how many times. In other words, I want to know the number of people that log in 1 time, the number that log in 2 times, the number that log in 3 times, etc. I then want to group this data up by month.
From the command line in FoxPro, I can run the following queries to get this info:
Code:
-- Query 1: Select into cursor
SELECT month(logindate) AS M, cmonth(logindate) AS MN, id, COUNT(id) AS LCount
FROM logintrack
GROUP BY M, id
INTO CURSOR temp_logintrack
-- Query 2: Get count of counts
SELECT M, MN, LCount, COUNT(Lcount) AS AggLCount
FROM temp_logintrack
ORDER BY M, LCount
GROUP BY M, MN, LCount
But, if I try to execute these queries like so:
Code:
conn.execute(query1)
set rs = conn.execute(query2)
I get an "temp_logintrack.dbf not found" error when I try to execute query2.
If anyone has any advice, I'd really appreciate it! Let me know if you need any more info.
Thanks,
Misty