Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

VB.net Access SQL Select an example of data in any column

Hi

In my VB.net application that works with an Access database, I need to get a single example of data
for each column. What SQL statement would I use to get a single item of data that is not null
from any column?

For instance if I have a Text column called AccNumber I would want to get a single example of data eg "ACC123"

The following statement gets me a list, when I just need one of these items
SELECT ([AccNumber]) AS Expr1
FROM Transactions
WHERE [AccNumber] Is Not Null;
ASKER CERTIFIED SOLUTION
Avatar of Gustav Brock
Gustav Brock
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Murray Brown

ASKER

Thanks very much
You are welcome!

/gustav