Solved

Data Type Mismatch in criteria expression

Posted on 2011-03-21
8
544 Views
Last Modified: 2012-05-11
Experts,

I am helping a non-profit organization; they have an Access database that cannot open in other than "design view". Apparently, the database was working fine but since Friday of last week they cannot open this particular form..
The database has many forms and they all open just fine.

I am not familiar with Access and have no idea how to troubleshoot, can anyone help??

Thank you,
0
Comment
Question by:Newco
  • 4
  • 3
8 Comments
 
LVL 75
ID: 35186663
Well ... either upload the db (remove any sensitive information) or ... determine where the error is occurring and post the relevant information.  There a many ways that error can be rendered.

mx
0
 
LVL 21
ID: 35186753
It sounds like the issue is not in the form but in the form's record source.

What is the SQL for the form's record source?
0
 
LVL 2

Author Comment

by:Newco
ID: 35186791
here is the db, the we cannot open "interpreter log" in form view.

Thanks,
interpreter-log-db.accdb
0
 
LVL 75
ID: 35186819
Issue fixed ... Form Filter and Order property had bogus strings.

mx
interpreter-log-db-MX01.zip
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 2

Author Comment

by:Newco
ID: 35190643
DatabaseMX:

I am sorry, don't mean to abuse; I actually deleted many other forms on my previous upload, the above file opens just fine, but when I copy the VB code to the "actual" the issue continues "Data Type Mismatch in criteria expression"..

Here is the actual file (with everything), can you help?

Thanks a bunch.
Assignment-LA-and-OC-2009.zip
0
 
LVL 75
ID: 35191276
ok ... standby ...

mx
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 500 total points
ID: 35192063
Ok ... s/b fixed - attached.  Same issue. See screenshot ... The Filter and OrderBy properties had a 'stuck' string ... which is causing this error.  There is no 'VB code' associated with the error.

mx
Assignment-LA-and-OC-2009-MX02.zip
Capture1.gif
0
 
LVL 2

Author Closing Comment

by:Newco
ID: 35202809
Thank you very much!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now