Solved

Access 2010 Len Function in query grid

Posted on 2013-05-21
2
610 Views
Last Modified: 2013-05-21
Hi Experts,

I utilize the Len function to count the number of characters in a datafield [H_SVP] which contains such data as A, BB, DDD, etc.  I use Len([H_SVP]) in a database which normally returns 1, 2, 3 respectively.

For some reason I return no results when I use the exact same field and len function in a different database....I don't get an error message just blank cells when I run the query.

I tried creating a new database and importing everything in case I had a bug but that didn't work either.

Any idea on why the Len function wouldn't work?
0
Comment
Question by:grmcra
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 39185496
try doing this in the immediate window

?len("ABC")
3

did you get the correct result? No error?



* Open your references, from VBA window
Tools > References
check for any MISSING ref, uncheck and locate the available reference and select
click OK

in VBA window
do a debug >Compile
correct any error raised
0
 

Author Closing Comment

by:grmcra
ID: 39185541
...thank you, when I unchecked and then rechecked the references it worked.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question