Re: Error message with non-existent linie number!



Yes, 'interval' is a reserved word. See under 'I' at the URL below ...
http://support.microsoft.com/?id=321266

The solution is to either change the field name or use square brackets as
you have already discovered.

--
Brendan Reynolds

"PAF" <PAF@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6DBCA2D1-0BA6-479F-94AC-3B4E75F5D83E@xxxxxxxxxxxxxxxx
> This test code...:
>
> <%
> Set dbconn = Server.CreateObject("ADODB.Connection")
> dbconn.Open Application("sysvedligehold_ConnectionString")
> dbconn.Execute("SELECT Interval FROM Udstyr WHERE Udstyr_nummer=1025")
> dbconn.Close
> %>
>
> Results in the error:
>
> error '80004005'
> /logistik/pta/sysvedligehold/test.asp, line 49
>
> - which is strange, as test.asp has only 20 lines!
>
> When I change the SQL-query to:
>
> "SELECT [Interval] FROM Udstyr WHERE Udstyr_nummer=1025"
>
> ...then it works fine (Only difference is the "[" and "]")
>
> What is the explanation to this? Is "Interval" some kind of reserved word?
>
> The same SQL-query works without and with brackets directly in MS Access.
> The test is done at Windows Server 2003 / IIS6 with latest service pack
> and
> all security patches, with Frontpage 2003 server extensions.
>
> Regards,
> Peter


.



Relevant Pages

  • Re: The Object Doesnt contain the Automation object Date
    ... Ironically enough, you probably need to *add* some square brackets, around ... I'm getting no error message but the text box is saying #Name? ... Brendan Reynolds wrote: ... and methods it make available for Automation operations. ...
    (microsoft.public.access.formscoding)
  • Re: The Object Doesnt contain the Automation object Date
    ... One of the problems is that the square brackets ... Brendan Reynolds wrote: ... You tried to runa Visual Basic Proceedure to set a property or method ... and methods it make available for Automation operations. ...
    (microsoft.public.access.formscoding)
  • Re: The Object Doesnt contain the Automation object Date
    ... I'm getting no error message but the text box is saying #Name? ... Brendan Reynolds wrote: ... be enough to prevent Access from adding the square brackets. ... and methods it make available for Automation operations. ...
    (microsoft.public.access.formscoding)
  • Re: The Object Doesnt contain the Automation object Date
    ... Brendan Reynolds wrote: ... I'm getting no error message but the text box is saying #Name? ... be enough to prevent Access from adding the square brackets. ... and methods it make available for Automation operations. ...
    (microsoft.public.access.formscoding)
  • Re: The Object Doesnt contain the Automation object Date
    ... If you're having trouble entering the expression without the square brackets ... You may find that Access removes the parentheses after Date, ... Brendan Reynolds wrote: ... and methods it make available for Automation operations. ...
    (microsoft.public.access.formscoding)