|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
INSERT question
Hey I'm really new to all this.
I'm trying to do an INSERT statement It works but the text boxes can contain any value so if someone types in ' or " it messes things up. I'm sure this is a simple solution but I haven't been able to find anything anywhere Please help! Thanks -X- |
|
#2
|
|||
|
|||
|
Assign your textboxes input masks. This will make it so that if a field and only hold numeric values, the user can only enter numeric values. If they are to be adding Dates, they can only enter dates.
S- |
|
#3
|
|||
|
|||
|
Looking to use text input
Quote:
That would be good but I want users to be able to enter ' & " in their text messages |
|
#4
|
|||
|
|||
|
those symbols are reserved in SQL code and will cause you nothing but problems. You can't use them and use insert statements. There are ways to bypass that (ADO recordsets), but I still wouldn't recommend allowing those symbols if at all possible, espically in field that you will be searching against.
S- |
|
#5
|
|||
|
|||
|
Quote:
Actually I finnaly found the answer to insert a ' in an INSERT statment it needs to be put in as '' i.e. INSERT INTO Table (text) VALUES ('Hello I''m Here') " I didn't actually have a problem with. It does fine inside single quotes. -X- |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft Access Help > INSERT question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|