473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

complex expression builder

Hi,

I want to use the expression builder in a query to define a field. I
know how to do it for simple fields, like the one below :

orderdate: IIf((IsNull([verification simulator]) And [verified]=False)
Or ([verification simulator]<>"N/A" And [verified]=False),[ver
date],[start date])

When though the expression is too complex, the builder is not very
convenient to use. I tried to use a function instead... The error I
get is "External name not defined". I suppose I get that because I
input the fields as you do in the builder i.e. not defining the
form(?) they come from.

I tried to use Me!, but again I get an error...

What's the best way to takle this?

Thank you in advance

Laertes
Nov 13 '05 #1
1 2522
You say that you tried to use a function. Where did you place this function
and how did you call it? Did you create a "user defined function"? You are
correct, "Me" won't work in SQL, but you can give the full path to the form
instead.

Change Me!txtMyTextbox
to Forms!frmMyForm!txtMyTextbox

However, if you are trying to concatenate a value from a form into SQL being
defined in code, you can use "Me!" in the code, because it will actually be
replaced by the concatenation with the actual value. So the SQL will have
the value in it, not the "Me!".

--
Wayne Morgan
Microsoft Access MVP
"Laertes" <bi******@btopenworld.com> wrote in message
news:b2**************************@posting.google.c om...
Hi,

I want to use the expression builder in a query to define a field. I
know how to do it for simple fields, like the one below :

orderdate: IIf((IsNull([verification simulator]) And [verified]=False)
Or ([verification simulator]<>"N/A" And [verified]=False),[ver
date],[start date])

When though the expression is too complex, the builder is not very
convenient to use. I tried to use a function instead... The error I
get is "External name not defined". I suppose I get that because I
input the fields as you do in the builder i.e. not defining the
form(?) they come from.

I tried to use Me!, but again I get an error...

What's the best way to takle this?

Thank you in advance

Laertes

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

39
by: | last post by:
I am trying to run the following agregate function in a parameterized query on Access2000: Min(.*sqr(./.)/) The query saved OK, but an attempt to run it results in the message: The expression...
3
by: Fran Zablocki | last post by:
I am trying to write an expression that converts one set of values to another. There are two fields, STAGE and ADMIT_TYPE, which are used as input criteria, and the final converted values are...
1
by: Grant Hammond | last post by:
I assume I'm not alone in my frustration that the expression builder that comes (in part) with Access XP that dosnt wrap text when you open it on an exisitng expression in a query or form. I's...
2
by: Mike Turco | last post by:
I like using the expression builder for a lot of different things but it isn't always available when I want to use it, for example in the code window, or in all of the control properties. I am...
1
by: Don | last post by:
I'm trying to build a simple report. It will show debtors, budgeted amounts and how much was actually paid to those debtors. I've tried using the expression builder, though I've never used it...
2
by: Brian Kitt | last post by:
I have a process where I do some minimal reformating on a TAB delimited document to prepare for DTS load. This process has been running fine, but I recently made a change. I have a Full Text...
0
by: AlexanderTodorovic | last post by:
Hello Everyone, I'm developing a client application in which the users need an expression builder as provided in MS Access 2003. I would like to use the expression builder in a C# application....
3
by: rrosynek | last post by:
I have a 2003 Access Database with several tables related in a one to many relationship with a parent I am looking to build a report which evaluates if different users of the table have all entered...
18
by: emajka21 | last post by:
Access 2000, I am trying to add a "Summed" total to a report (in a grouped footer section). But I only want to sum the top 3 items. I know how to write this in sql but it seems I can't get a to a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.