Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to avoid a Runtime error 3075, Function is not available in query expression when importing a txt file into an Access table?

Posted on 2013-01-27
8
Medium Priority
?
1,453 Views
Last Modified: 2013-01-28
I am developing an application using Access 2003.

I import a txt file into an Access table.

I attached my Access mdb file and the txt file that I am importing.

When I click on the Import button from the interface, I get the following error message:

Runtime error '3075'

Function is not available in query expression
'IIf(isnumeric(clientacct),left(clientacct,3),"")'.

-----------------------------------------------------------
OI-WRS.txt
ReportsDB.mdb
0
Comment
Question by:zimmer9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 58

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 2000 total points
ID: 38824931
This is usually a sign that references are broken.

Open a module in design view, click tools/references.

Look for any missing or broken.   If any are, you'll need to fix them.

If none are listed that way, uncheck any un-checked reference (doesn't matter) which.  Close the DB and Access, re-open, and un-check the reference you just checked (it will be the last one).  

This procedure forces of refresh of the references collection.

Make sure your db compiles.  Now try the query.

If it still fails, DAO (if used) will need to be re-registered.  If your not using DAO, then something else is wrong and we can go further.

Jim.
0
 
LVL 26

Expert Comment

by:jerryb30
ID: 38825012
Get this when I open:

Missing Link
0
 

Author Comment

by:zimmer9
ID: 38825140
0
Application Discovery Service in AWS

In the era of the cloud, customers migrating away from their existing on-premise infrastructure. This requires lots of planning, strategies, and effort to identify their existing resources and determine how best to migrate.  Datacenter migrations happen in four phases -

 

Author Comment

by:zimmer9
ID: 38825141
I updated my Access mdb file to remove a reference to PDFCreator.exe
0
 
LVL 16

Expert Comment

by:kmslogic
ID: 38825226
I think what's happening is that you're encountering null values in your table, and your expressions can't handle that.  Use the nz() function to fixup null values like:

IIf(isnumeric(clientacct),left(clientacct,3),"")

becomes

IIf(isnumeric(nz(clientacct,"")),left(nz(clientacct, ""),3),"")

for numeric columns use

nz(numericcolumn, 0)

in your expressions
0
 
LVL 58
ID: 38826657
<<I updated my Access mdb file to remove a reference to PDFCreator.exe >>

 Does your app compile?

Jim.
0
 
LVL 16

Expert Comment

by:kmslogic
ID: 38827213
I'm curious what the final resolution of this was--did you remove a reference from the vba editor and your app started working?  Which one?
0
 

Author Comment

by:zimmer9
ID: 38827229
I checked on a reference I wasn't using. Then I closed the Access application. Then I reopened the application and unchecked this reference and saved once again and as Jim stated this procedure forces a refresh of the references collection.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

705 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