Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

database connection 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
this error accurs:
compilererror in Microsoft Vbscript-Fehler '800a03ee'
')' awaited
/Abfrage-D.asp, line 24

line 24:
set rs=sharknetc.execute("SELECT T_Domain.Domain, T_Domain.[FP-User],
T_Domain.[FP-Passwort], T_Domain.von, T_Domain.bis, T_Email.email,
T_Email.User, T_Email.Passwort, T_Email.von, T_Email.bis,
T_Kunden.Firma, T_Kunden.Name, T_Kunden.Vorname, T_Kunden.Strasse,
T_Kunden.PLZ, T_Kunden.Ort, T_Kunden.Tel FROM T_Kunden INNER JOIN
(T_Domain INNER JOIN T_Email ON T_Domain.[Domain-ID] =
T_Email.[Domain-ID]) ON T_Kunden.[Kunden-ID] = T_Domain.[Kunden-id]
WHERE T_Domain.Domain="repa.ch"")

i translated this error from german and hope i got it right
 
Try this:

...WHERE T_DOMAIN.Domain = 'repa.ch'") or

...WHERE T_DOMAIN.Domain = " & Chr(34) & "repa.ch" & Chr(34))

The second one uses the ", but I guess it should be '.

Another tip: You may create a view that joins all your tables and refer to it in your asp-script instead of using such a complex query. It makes your code much more readable.
[sig][/sig]
 
If you are calling all the fields in your database, you could do: ..("Select *from Databasename etc.....) rather than listing each one. I won't help with the problem but might make the coding easier. I'm not an expert but have done this myself when needing to load all or most of the fields from a table. I don't know if this will work with execute though.

Don [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top