473,414 Members | 1,563 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,414 software developers and data experts.

Type Mismatch Error

Hi - I have an exit form macro that has a query and maco in it. When I run them separately, everything runs fine. When I run the exit form macro, I get a Type Mismatch error. Any thoughts on fixing it?

Here is the code:
Expand|Select|Wrap|Line Numbers
  1. Private Sub Command69_Click()
  2. On Error GoTo Command69_Click_Err
  3.  
  4.     If (Eval("[Forms]![CHILD_DOCUMENTATION]![1 1 ENTERED INTO SYSTEM UPON RECEIVING REQUEST YES OR NO OR NA]=""no"" And [Forms]![CHILD_DOCUMENTATION]![1 1 DEFECT REASON] Is Null")) Then
  5.         Beep
  6.         MsgBox "You must enter a defect reason code for 1.1", vbOKOnly, ""
  7.     End If
  8.     If (Eval("[Forms]![CHILD_DOCUMENTATION]![1 1 ENTERED INTO SYSTEM UPON RECEIVING REQUEST  YES OR NO OR NA]=""no"" And [Forms]![CHILD_DOCUMENTATION]![1 1 DEFECT REASON] Is Null")) Then
  9.         End
  10.     End If
  11.     If (Eval("[Forms]![CHILD_DOCUMENTATION]![1 2 COMPLETED FIELDS ACCORDING TO P AND P YES OR NO OR NA]=""no"" And [Forms]![CHILD_DOCUMENTATION]![1 2 DEFECT REASON] Is Null")) Then
  12.         Beep
  13.         MsgBox "You must enter a defect reason code for 1.2", vbOKOnly, ""
  14.     End If
  15.     If (Eval("[Forms]![CHILD_DOCUMENTATION]![1 2 COMPLETED FIELDS ACCORDING TO P AND P YES OR NO OR NA]=""no"" And [Forms]![CHILD_DOCUMENTATION]![1 2 DEFECT REASON] Is Null")) Then
  16.         End
  17.     End If
  18.     If (Eval("[Forms]![CHILD_DOCUMENTATION]![1 3 UPDATED ISSUE AND SUB-ISSUE STATUS YES OR NO OR NA]=""no"" And [Forms]![CHILD_DOCUMENTATION]![1 3 DEFECT REASON] Is Null")) Then
  19.         Beep
  20.         MsgBox "You must enter a defect reason code for 1.3", vbOKOnly, ""
  21.     End If
  22.     If (Eval("[Forms]![CHILD_DOCUMENTATION]![1 3 UPDATED ISSUE AND SUB-ISSUE STATUS YES OR NO OR NA]=""no"" And [Forms]![CHILD_DOCUMENTATION]![1 3 DEFECT REASON] Is Null")) Then
  23.         End
  24.     End If
  25.     If (Eval("[Forms]![CHILD_DOCUMENTATION]![1 4 DOCUMENTED RESOLUTION YES OR NO OR NA]=""no"" And [Forms]![CHILD_DOCUMENTATION]![1 4 DEFECT REASON] Is Null")) Then
  26.         Beep
  27.         MsgBox "You must enter a defect reason code for 1.4", vbOKOnly, ""
  28.     End If
  29.     If (Eval("[Forms]![CHILD_DOCUMENTATION]![1 4 DOCUMENTED RESOLUTION YES OR NO OR NA]=""no"" And [Forms]![CHILD_DOCUMENTATION]![1 4 DEFECT REASON] Is Null")) Then
  30.         End
  31.     End If
  32.     DoCmd.RunMacro "UPDATE TOTALS", , ""
  33.     DoCmd.Close acForm, "CHILD DOCUMENTATION"
  34.  
  35.  
  36. Command69_Click_Exit:
  37.     Exit Sub
  38.  
  39. Command69_Click_Err:
  40.     MsgBox Error$
  41.     Resume Command69_Click_Exit
  42.  
  43. End Sub
  44.  
Any help would be appreciated.
Jun 6 '07 #1
0 935

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

Similar topics

5
by: Arun Wadhawan | last post by:
Hello MY SQL Server is causing me this problem : Microsoft VBScript runtime error '800a000d' Type mismatch: 'ident' >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> I am getting from...
1
by: LJgrnl | last post by:
I've got a type mismatch error that's driving me nutty. Variable blnNoData has the initial value False. If a recordset comes back empty (both .EOF and ..BOF are true) then blnNoData is set to...
4
by: Mike | last post by:
I am getting a type mismatch error when I do a bulk insert. ---Begin Error Msg--- Server: Msg 4864, Level 16, State 1, Line 1 Bulk insert data conversion error (type mismatch) for row 1, column...
0
by: news.paradise.net.nz | last post by:
I have been developing access databases for over 5 years. I have a large database and I have struck this problem with it before but can find nothing in help or online. Access 2000 I have a query...
3
by: amitbadgi | last post by:
I am getting teh following error while converting an asp application to asp.net, Exception Details: System.Runtime.InteropServices.COMException: Type mismatch. Source Error: Line...
1
by: Brett | last post by:
I have a form that calls a method within a DLL. By clicking a button on the form, the DLL is instantiated and the SaveOutlookMessage() method invoked. The DLL code copies messages from Outlook to...
6
by: Howard Kaikow | last post by:
I'm doing a VB 6 project in which I am trying to protect against type mismatch errors. Is the process any different in VB .NET? Here's what I'm doing in VB 6. I have an ActiveX DLL. The...
1
by: jodyblau | last post by:
I have a database which works fine until I create and MDE file. Once I create the MDE, when I open a particular form I get a "Type Mismatch" error. Because its an MDE file, I can't step through...
19
by: zz12 | last post by:
Hello, is there a setting in IIS 5.0 that would quickly fix the following error?: Microsoft VBScript runtime (0x800A000D) Type mismatch It's strange because some of our .asp pages were...
1
by: nckinfutz | last post by:
hello, I am having a problem with an access database. this is not my database and I did not create it, nor am I very good at access. however, I am a network engineer and that is why this problem...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.