J
Jason Lopez
I have a form that I have been able to convert to a Access Data Page. Most
of the form works in that HTML. However, there is one difference: the VB
code that is put in to requery a control based on the result of the previous
is not functioning correctly. When I load teh HTML, I get the following
error message: "Data provider failed while executing a provider command."
That error is then followed by "Invalid SQL statement; expected 'DELETE',
'INSERT', 'PROCEDURE', 'SELECT', OR 'UPDATE'."
Essentially, I have two controls. Each use a SQL statement as part of their
combo box functions. Control1 works fine in the HTML and Access form.
Control2 is where the problems begin. Control2 uses the following code in
VB to requery its own SQL statement for each time that the value of Control1
changes. So, for example, I put ValueA in Control1. Control2 will perform
its query (or at least it is supposed to) based on the value of Control1.
The SQL statement for Control2 of the original form looks like this:
SELECT tblRole.ID, tblRole.Role FROM tblRole WHERE
(((tblRole.Group_ID)=Forms![Current Proxy List]!ProxyGroup)) ORDER BY
tblRole.ID, tblRole.Role
The "Forms![Current Proxy List]!ProxyGroup" is Control1.
Hope this helps to get an idea of where I am stuck at. If I can find where
it is or what it is that I need to change to make this work properly, that
would be great.
Jason Lopez
of the form works in that HTML. However, there is one difference: the VB
code that is put in to requery a control based on the result of the previous
is not functioning correctly. When I load teh HTML, I get the following
error message: "Data provider failed while executing a provider command."
That error is then followed by "Invalid SQL statement; expected 'DELETE',
'INSERT', 'PROCEDURE', 'SELECT', OR 'UPDATE'."
Essentially, I have two controls. Each use a SQL statement as part of their
combo box functions. Control1 works fine in the HTML and Access form.
Control2 is where the problems begin. Control2 uses the following code in
VB to requery its own SQL statement for each time that the value of Control1
changes. So, for example, I put ValueA in Control1. Control2 will perform
its query (or at least it is supposed to) based on the value of Control1.
The SQL statement for Control2 of the original form looks like this:
SELECT tblRole.ID, tblRole.Role FROM tblRole WHERE
(((tblRole.Group_ID)=Forms![Current Proxy List]!ProxyGroup)) ORDER BY
tblRole.ID, tblRole.Role
The "Forms![Current Proxy List]!ProxyGroup" is Control1.
Hope this helps to get an idea of where I am stuck at. If I can find where
it is or what it is that I need to change to make this work properly, that
would be great.
Jason Lopez