|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
In Access 2000, how do you make access not expect * as an input for a query.
I need to ensure data integrity and if a user can enter * as an input then they will be writing to all the entries instead of one. These type of queries are not able to filter *, I still get all of the records: INSERT INTO info_add_pc ( info_add ) SELECT pc.compn FROM pc WHERE (((pc.compn)<>'*' And (pc.compn) Like ["Enter in the computer name "])); WHERE (((pc.compn)<>'**' And (pc.compn) Like ["Enter in the computer name "])); These two are some of the ones that doesn't except *, but it doesn't except any input, meaning I don't get any output: WHERE (((pc.compn) Like ["Enter in the computer name "] And NOT '*')); WHERE (((pc.compn) Like ["Enter in the computer name "]) AND (('!*')=False)); Last edited by gothrog : July 2nd, 2003 at 11:45 AM. |
|
#2
|
|||
|
|||
|
have you tried escaping the character?
|
|
#3
|
|||
|
|||
|
No, how do you escape a character?
|
|
#4
|
|||
|
|||
|
Try backslash `\`
|
|
#5
|
|||
|
|||
|
Can you give an example in this code. I've tried entering it in already, but it didn't work.
WHERE (((pc.compn) <> '/*' And (pc.compn) Like ["Enter in the computer name "])); |
|
#6
|
|||
|
|||
|
where col like '\*'
|
|
#7
|
|||
|
|||
|
No it didn't work. I have created and a recovery system though if anyone uses *. It is not the best solution, but it is a solution.
Thanks for your help though. |
![]() |
| Viewing: Dev Shed Forums > Databases > Database Management > How do you filter '*' from Access 2000 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|