F
Frank Verschoor
I am working on a new project database using Access and SQL Server. The
program is designed for the Theatre Business. For 2 years we worked with an
Access frontend and backend, but the time has come to consider working with
SQL server.
Everything seems to be working accept one form. It is an unbound form in
which is used for entering client data. After all the nessary data has been
entered to make a reservation a button appears. On pushing the button a
stored procedure is executed via VB using the following RunSQL statement:
DoCmd.RunSQL "EXECUTE Klant_toevoegen " & "'" & Me.Titel & "'" & "," & "'" &
Me.Voorletters & "'" & "," & "'" & Me.Tussenvoegsels & "'" & "," & "'" &
Me.Achternaam & " '" & "," & "'" & Me.Adres2 & "'" & "," & "'" & Me.Postcode
& "'" & "," & "'" & Me.Plaats & "'" & "," & "'" & Me.Telefoon & "'" & "," &
"'" & Me.Mobiel & "'" & "," & "'" & Me.Bedrijf & "'" & "," & "'" & Me.Email
& "'"
The stored procedure on the server looks like this:
INSERT INTO dbo.Klantenbestand
(Titel, Voorletters, Tussenvoegsels, Naam, Adres,
Postcode, Plaats, Telefoon, Mobiel, [Naam Bedrijf], Email)
VALUES (@Param1, @Param2, @Param3, @Param4, @Param5, @Param6, @Param7,
@Param8, @Param9, @Param11, @Param10)
Everything seems to be working fine until I enter an email adress. I get an
error message. I think the cause is the @ sign. Does anybody know how to
handle this ? Could somebody please help me ?
Kind Regards,
Frank Verschoor
program is designed for the Theatre Business. For 2 years we worked with an
Access frontend and backend, but the time has come to consider working with
SQL server.
Everything seems to be working accept one form. It is an unbound form in
which is used for entering client data. After all the nessary data has been
entered to make a reservation a button appears. On pushing the button a
stored procedure is executed via VB using the following RunSQL statement:
DoCmd.RunSQL "EXECUTE Klant_toevoegen " & "'" & Me.Titel & "'" & "," & "'" &
Me.Voorletters & "'" & "," & "'" & Me.Tussenvoegsels & "'" & "," & "'" &
Me.Achternaam & " '" & "," & "'" & Me.Adres2 & "'" & "," & "'" & Me.Postcode
& "'" & "," & "'" & Me.Plaats & "'" & "," & "'" & Me.Telefoon & "'" & "," &
"'" & Me.Mobiel & "'" & "," & "'" & Me.Bedrijf & "'" & "," & "'" & Me.Email
& "'"
The stored procedure on the server looks like this:
INSERT INTO dbo.Klantenbestand
(Titel, Voorletters, Tussenvoegsels, Naam, Adres,
Postcode, Plaats, Telefoon, Mobiel, [Naam Bedrijf], Email)
VALUES (@Param1, @Param2, @Param3, @Param4, @Param5, @Param6, @Param7,
@Param8, @Param9, @Param11, @Param10)
Everything seems to be working fine until I enter an email adress. I get an
error message. I think the cause is the @ sign. Does anybody know how to
handle this ? Could somebody please help me ?
Kind Regards,
Frank Verschoor