We are trying to access an access database located on the server via an html page using rds. Is this the best solution? If so, how do you make the connection to the database and write to it? The code we have is as follows but throws an error on the sql statement. What am I missing?
<SCRIPT Language="VBScript">
Dim myquery
Dim dcRegistration
Dim dcClasses
Dim choice
Set dcRegistration=CreateObject("RDS.DataControl"
dcRegistration.Server="dcRegistration.Connect="DSN=StudentRegSystem.mdb"
dcClasses.SQL="SELECT * FROM CourseSection"
dcClasses.Refresh
Sub Submit_OnClick
myquery = "SELECT * FROM CourseSection WHERE CourseNumber LIKE '" + choice.Item + "'"
dcClasses.SQL = myquery
dcClasses.Refresh
End Sub
</Script>
<SCRIPT Language="VBScript">
Dim myquery
Dim dcRegistration
Dim dcClasses
Dim choice
Set dcRegistration=CreateObject("RDS.DataControl"
dcRegistration.Server="dcRegistration.Connect="DSN=StudentRegSystem.mdb"
dcClasses.SQL="SELECT * FROM CourseSection"
dcClasses.Refresh
Sub Submit_OnClick
myquery = "SELECT * FROM CourseSection WHERE CourseNumber LIKE '" + choice.Item + "'"
dcClasses.SQL = myquery
dcClasses.Refresh
End Sub
</Script>