Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

expression field query

Forum home » Delegate support and help forum » Microsoft Access Training and help » Expression field in Query - text limit

Expression field in Query - text limit

ResolvedVersion 2000

Gary has attended:
Access VBA course
Excel VBA Advanced course

Expression field in Query - text limit

Hello,

I have a really complex expression field that I wish to use in a query to sort a group of numbers into different string values i.e. 172 = "Bread Maker", etc. This is based on the IF...Then...ElseIf....Else expressions using the IIF in the expression.

What I need is when the data is inported it looks at the [Officer] field and associates that officer to a string value.

I believe there is a limit on characters in expression fields, can you help me with this??

Thanks,

Gary

RE: Expression field in Query - text limit

Hi Gary

Thanks for your post and outline of what you are trying to acheive.

To be in a position to confirm we can assist we would need to have access to your working files to see what solutions are possible.

This does take us beyond the scope of this forum and more into bespoke and consultancy areas. When we review your files we can let you know of scope of work, durations and costs.

If you would like to discuss this in further detail please contact us.

Kind regards

Jacob

RE: Expression field in Query - text limit

Jacob,

Sorry, I am unable to send the file as it is a data protected document.

I think I have solved it anyway.

Thanks,

Gary

Access tip:

Random sampling

Data is th key to a good database, therefore checking is essential.

A good way of checking data is by random sampling. You can do this in a query, by typing the follow:
1) In the Field box create a RandonID field eg. Randon Id: Rnd(fieldname])

2) sort the field
3)Right click and chage the properties for To value to be the number of randon records you want to see.

4) Change the set to Show row for Randon ID to be False, add all the other fields you want to see and the run the query.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.