Thanks, the links have been very helpful.
However, one of the methods involves using a local/client-side cursor. I can't seem to get this to work:
Is this property supported by MS Access?
Thanks.
...194
4 110
etc.
2)
I also want to write a query to find out the average number of children a family has.
The closest I have got is:
SELECT Count(*)
FROM CHILD
GROUP BY FamilyID
HAVING Count(*) = 1;
*And then I have to repeat this for 2 children, 3 children, 4 etc...
Hi,
I have a MS Access 2000 backend and want to show the result of a query on multiple pages (if necessary). To my knowledge, the PageCount and PageSize properties don't work so it looks like i have to hand code it?
Can someone point me in the right direction? I would like the code to be as...
Try to replace with this line:
<img src="images/<%=cimage%>" align="left">
You're just having trouble because you're trying to use string concatnation (&) but HTML doesn't do that. The (&) would have to be between <% and %> tags so that the server knows to process the code first.
Did that...
This is the error I get:
Error Type:
MSWC.ContentRotator.1 (0x80070005)
Access is denied.
/Default.asp, line 19
Here is line 19:
content = objContentRotr.ChooseContent("/content.txt")
Permissions look fine to me. On the folder and the file.
Any suggestions?
Thanks!
Then I would guess that your submit button is not named or it is named something other than "submit".
Take out the lines:
If Request.Form("submit") = "submit" Then
End If
It should now work.
Another suggestion (for when you get this working).
Use the replace function to replace any single quotes:
replace(request.form("cname"),"'","''")
If you don't do this, and someone puts a (') in your form, you will get an error. Also, it opens up the chance for SQL injection.
You might also...
You have one too many double quotes (") and are missing two single quotes ('). Use the string below:
sSQL = "INSERT INTO customer (cname) VALUES ('" & Request.Form("cname") & "')"
Just out of curiousity, what is the point of these lines in your code?
name=Request.QueryString("ObjectiveID")
name=Request.QueryString("CategoryNo")
name=Request.QueryString("StudentID")
name=Request.QueryString("StudentSurname")
name=Request.QueryString("RevNo")...
Lewis,
At this point I think you need to start fresh. There are way too many places for the error to be (permission problem, data type mismatch, syntax error, etc).
This is what I suggest, and I think it will save you time in the long run.
1) Make a NEW database (keep the old one though)...
onpnt,
Thanks again for a wonderful post. Gotta give a star for that. As my last question (i promise!), how am I supposed to test efficiency?
Is there some application that I am supposed to run along-side my code? Or am I just supposed to time (with a stop-watch?) how long it takes for the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.