Hello - I'm trying to learn some of the syntaxing for mysql. I know access real well, and I'm just trying to learn the minor differences. I'm trying to have WWF check for a value in the database (an expiration date), and I created an ASP page to open up the database, but I'm getting the following error:
Microsoft VBScript runtime error '800a01a8'
Object required: ''
It's pointing to the line where I open the database:
'Query the database
rsCommon.Open strSQL, adoCon
So obviously something isn't set right. I used the dbconnection(everything is set fine inthsi file as the board runs) include file on this page, and have the following code:
GID = "5" ' just set for sample purposes
strSQL = "SELECT " & strDbTable & "Author.* " & _
"FROM " & strDbTable & "Author" & strDBNoLock & " " & _
"WHERE " & strDbTable & "Author.Author_ID = " & GID & ";"
'Query the database
rsCommon.Open strSQL, adoCon
If NOT rsCommon.EOF Then
'Grab users group ID
ID = rsCommon("Group_ID")
Is this an incorrect way to just get all the fields from this specific Author_ID? Is there something else I need to set with the connection first ( I have to add the closing part of the code of course)? Help is really appreciated. Thanks.