Go Back   DeveloperBarn Forums > Databases > Microsoft Access

Sponsored Links

Discuss "query error" in the Microsoft Access forum.

Microsoft Access - Microsoft Access is a database for small to medium applications. Learn tips and tricks and best database practices here.


Reply « Previous Thread | Next Thread »  
 
LinkBack Thread Tools Display Modes
  #1  
Old July 29th, 2008, 08:46 PM
Barn Frequenter

 
Join Date: Mar 2008
Posts: 197
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1
todd2006 is an unknown quantity at this point
Default query error

Hi,

I have this query

Code:
strgets = "Select distinct Sports1 AS sporting FROM Points WHERE LEN(Sports1) > 0 and CombinePoints.Id=" & getid

I want to see that length of sports1 field is empty

I dont know if access allows to check the length of a field

todd
Reply With Quote
Sponsored Links
  #2  
Old July 29th, 2008, 09:29 PM
Rebelle's Avatar
V.I.P/Donor


 
Join Date: Mar 2008
Posts: 254
Thanks: 48
Thanked 1 Time in 1 Post
Rep Power: 1
Rebelle is on a distinguished road
Default

wouldn't that be IsNotNull?
Reply With Quote
  #3  
Old July 29th, 2008, 09:45 PM
Rebelle's Avatar
V.I.P/Donor


 
Join Date: Mar 2008
Posts: 254
Thanks: 48
Thanked 1 Time in 1 Post
Rep Power: 1
Rebelle is on a distinguished road
Default

try:

Code:
SELECT points.sports1 as sporting
FROM points
WHERE ((Len([sports1])>0)) and combinepoints.id=" & getid
Reply With Quote
Reply

  DeveloperBarn Forums > Databases > Microsoft Access

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
query error todd2006 SQL Development 1 June 24th, 2008 12:05 PM


All times are GMT -4. The time now is 04:58 PM.



Content Relevant URLs by vBSEO 3.2.0