SunQuest
           Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old July 2nd, 2003, 10:52 AM
gothrog gothrog is offline
Micro Junky
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: NJ
Posts: 80 gothrog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 6 m 43 sec
Reputation Power: 7
Angry How do you filter '*' from Access 2000

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.

Reply With Quote
  #2  
Old July 2nd, 2003, 03:22 PM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 31 m 56 sec
Reputation Power: 8
have you tried escaping the character?

Reply With Quote
  #3  
Old July 2nd, 2003, 04:25 PM
gothrog gothrog is offline
Micro Junky
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: NJ
Posts: 80 gothrog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 6 m 43 sec
Reputation Power: 7
No, how do you escape a character?

Reply With Quote
  #4  
Old July 2nd, 2003, 06:05 PM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 31 m 56 sec
Reputation Power: 8
Try backslash `\`

Reply With Quote
  #5  
Old July 3rd, 2003, 07:47 AM
gothrog gothrog is offline
Micro Junky
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: NJ
Posts: 80 gothrog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 6 m 43 sec
Reputation Power: 7
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 "]));

Reply With Quote
  #6  
Old July 3rd, 2003, 07:56 AM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 31 m 56 sec
Reputation Power: 8
where col like '\*'

Reply With Quote
  #7  
Old July 3rd, 2003, 12:29 PM
gothrog gothrog is offline
Micro Junky
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: NJ
Posts: 80 gothrog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 6 m 43 sec
Reputation Power: 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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > How do you filter '*' from Access 2000


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway