#Name? on Load

C

Chip

Hey everyone

I have a splash screen set up, that loads when the database is
loaded. When the databse loads, it has some information on the splash
screen like, how many letters are to be sent to day, or how many
classes are registrered for 2008, etc.

So each number has as text box associated with it and the Control
Source for that text box is set to the value of a count query.

example

There are <blank> classes in the system.

blanks Control source is
=qrySPLASHCOUNT

But when the splash screen loads, I get #Name? error. Where am I
going wrong?

Chip
 
B

boblarson

Chip:

You can't reference a query that way. You would need to use a DLookup with
the query to get what you want. The query should return one value and you
can get it by using:

=DLookup("[CountOfCLASSNUM]", "qrySPLASHCOUNT")
--
Bob Larson
Access MVP
Access World Forums Administrator
Utter Access VIP

Tutorials at http://www.btabdevelopment.com

__________________________________
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top