472,805 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

#Error on form when no data present: Access 2003...

Dököll
2,364 Expert 2GB
Hey Fans!

Perhaps you can help me...

I am using MS Access 2003. I have tried a number of things to get rid of the text #Error from appearing on form fields when no data present.

Tried the NZ function, also tried the IIF function, told it to give me zero if no data found, so far it seems to lead to nowhere land. What are your thoughts? Hopefully it's not very simple and I missed the boat, hee hee...

Thanks for your help!

Dököll
Mar 7 '08 #1
5 2402
sounds like there is a problem with your form fields. Fields should appear empty if there is no data in the underlying table/query/expression.

#error/#name etc. in the field would suggest there is a problem in retreiving the value, not that the value is null
Mar 7 '08 #2
missinglinq
3,532 Expert 2GB
While that's true of #Name, it's on ly sometimes true of #Error! With #Error it can also mean that the expression used as ControlSource cannaot be evaluated. What's the expression you have in the ControlSource for this field?

Linq ;0)>
Mar 7 '08 #3
While that's true of #Name, it's on ly sometimes true of #Error! With #Error it can also mean that the expression used as ControlSource cannaot be evaluated. What's the expression you have in the ControlSource for this field?

Linq ;0)>
thanks missinglinq you are right it is most likely a prob with the fields controlsource expression, nice call:)
Mar 7 '08 #4
NeoPa
32,534 Expert Mod 16PB
Tell us what you are populating the fields with in your form.
Include the details for a control where this happens as well as the RecordSource of the form itself if you can.
Mar 10 '08 #5
Dököll
2,364 Expert 2GB
Hey Gang!

Thanks for replying and please excuse the late reply. The form is being populated by a subform which is being populated by a query, will post some of the work to get an idea:

This is one of the fields that have the #Error instance

Expand|Select|Wrap|Line Numbers
  1.  
  2. =[InfoOnlyDataPRE].Form!InfoInfo
  3.  
  4.  
This is the subform portion, an attempt to calculate all items within that column/field abd feed it to the form using =[InfoOnlyDataPRE].Form!InfoInfo

Expand|Select|Wrap|Line Numbers
  1.  
  2. =Sum(NZ([Informational]))
  3.  
  4.  
This is our query portion, an attempt to feed items to subform column/field

Expand|Select|Wrap|Line Numbers
  1.  
  2. Informational: IIf(NZ([DataCentralReport!Category]="PreErrors" And [DataCentralReport!Informational])=True,1,0)
  3.  
  4.  
It looks like it should work, I should get zero, don't you think? When data are available as mentioned, all is well. Something is there, and I just can't quite put my finger on it.

Let me kow what you see. And thanks for your assistance, very cool.

Dököll
Mar 27 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: James Walker | last post by:
Can some one help I get an error of 'checkIndate' is null or not an object can someone please help. I can't work out why Thanks in advance James <form> <td height="24" colspan="7"...
0
by: M. Farrenkopf | last post by:
I am in the process of converting a Jet database to ADP using SQL Server 2000. Most of this conversation has been smooth, but now I'm running across a problem that has me stumped. Access 2000 SP3...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
5
by: Lyn | last post by:
Hi, I hope someone can help. I have a main form which mostly fills the Access window. In the bottom half of this form I have a tab control to display various types of data related to the main...
6
by: Squirrel | last post by:
I have a command button on a subform to delete a record. The only statement in the subroutine is: DoCmd.RunCommand acCmdDeleteRecord The subform's recordsource is "select * from tblVisit order...
16
by: TD | last post by:
This is the code under a command button - Dim ctl As Control For Each ctl In Me.Controls If ctl.BackColor <> RGB(255, 255, 255) Then ctl.BackColor = RGB(255, 255, 255) End If Next ctl
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
0
by: Yelena Varshal via AccessMonster.com | last post by:
Hello We have a shortcut for our MS ACCESS application that uses a /Runtime switch because we may have some users that use Runtime. The application worked fine in Access 2000 and was tested with...
16
by: John | last post by:
I am looking for VBA code that will work with Access 2003 to enable dragging and dropping a file/folder name from Windows XP Explorer into an Access form's text box. This is a common functionality...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.