-
July 1st, 2014, 11:25 AM
#1
Bypass or solution for using syntaxis in Access database?
Hi all,,
Im a rookie programmer and Im trying to make an errorprogram for work.
The problem that i have is: that i have a premade database which is Full of syntaxis.. one of the tablenames where i got a "insert into" error or an "syntaxis" error is at the following tablename (in dutch):
"Storings tabel"
There is a space between the words and it is not possible to remake the database because Its huge and Full with relations.
The error part is on the line with da.fill:
this is a part of the code with the error:
con.Open()
sql = "INSERT INTO Storings tabel(aanmelder) VALUES('" & TestTB.Text & "')"
da = New OleDb.OleDbDataAdapter(sql, con)
da.Fill(ds, "Storings tabel")
Is there a way to bypass the "space" character?
I tried an underscore or Chr(32) But it wont work.
I hope someone can help, Thankss!
-
July 1st, 2014, 11:36 AM
#2
Re: Bypass or solution for using syntaxis in Access database?
Victor Nijegorodov
-
July 1st, 2014, 11:32 PM
#3
Re: Bypass or solution for using syntaxis in Access database?
-
July 1st, 2014, 11:41 PM
#4
Re: Bypass or solution for using syntaxis in Access database?
Originally Posted by Dreamiej
WoW! Many Thanks, This one worked for me!
Only I ran into a new problem in the database with the tabletext "Monteurs-Id"
There is a dash between the words, is there also an solution for? The brackets wont help me this time with [Monteurs-Id]..
I Helped myself,, Many thanks for helping VictorN!!
-
July 2nd, 2014, 01:20 AM
#5
Re: Bypass or solution for using syntaxis in Access database?
Originally Posted by Dreamiej
I Helped myself,,
How?
Could you share your solution/workaround?
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|