I need to create an export file for the following brutal query to upload into a state database (go figure it's a government report!) All was good in my world until I tried to export. Manually or TransferText, didn't matter, it just hated me. The above error stopped me cold in my tracks. Searching about, no one else seems to know what the heck this stupid error is. Anybody? Bueller? -
SELECT DISTINCT Format([Forms]![frmReports]![txtFrom],"mm/yyyy") AS [Month], tblSettings.CDEVendorNo AS Vendor, tblFamilies.FamilyID AS FICN, tblFamilies.SSN, tblFamilies.ParentALast, tblFamilies.ParentAFirst, "" AS MI, tblFamilies.ParentAZip, "N" AS CW, "N" AS 75SMI, tblEligibility.Need, tblFamilies.FIPS, Format([qryFirstStart_Family].[FirstStart],"mm/dd/yyyy") AS FamilyStart, tblKids.KidLast, tblKids.KidFirst, "" AS MI2, Format([DOB],"mm/dd/yyyy") AS DB, IIf([tblKids.ExceptionalNeeds]=Yes,"Y","N") AS IEP, Format([qryFirstStartLastEnd_Kid].[FirstStart],"mm/dd/yyyy") AS KidStart, tblSettings.TaxIDNo AS EIN, IIf([ProviderType]="FCCN","02","04") AS Type, "CCTR" AS Program1, "" AS Program2, "" AS Program3, Format([qryFirstStart_Family].[FirstStart],"mm/dd/yyyy") AS FamilyStart2
-
FROM tblSettings, tblProviders INNER JOIN (((((tblKids INNER JOIN tblFamilies ON tblKids.FamilyID = tblFamilies.FamilyID) INNER JOIN tblEligibility ON tblFamilies.FamilyID = tblEligibility.FamilyID) INNER JOIN (tblSchedules INNER JOIN qryToFrom ON tblSchedules.SchID = qryToFrom.SchID) ON tblKids.KidID = tblSchedules.KidID) INNER JOIN qryFirstStart_Family ON tblFamilies.FamilyID = qryFirstStart_Family.FamilyID) INNER JOIN qryFirstStartLastEnd_Kid ON tblKids.KidID = qryFirstStartLastEnd_Kid.KidID) ON tblProviders.ProviderID = tblSchedules.ProviderID;
4 2556 nico5038 3,080
Recognized Expert Specialist
The error message indicates that two of your fields aren't found by Access in the table.
One way to find the fields is to use a copy of the query and remove the fields one by one to detect when the message stops appearing....
Nic;o)
Thanks for the strategy. I used it to identified the offending elements. Format([Forms]![frmReports]![txtFrom],"mm/yyyy") AS [Month]and FROM ... INNER JOIN qryToFrom ... Their common theme is that they get parameters from an open form. This appears to be the issue. The problem is that need those fields, it sets the date range for the report. Is there a better way to set it up that I haven't done?
Thanks again,
Bradley
Success!
Beat that nasty parameter issue by making it a make-table query and then exporting the resulting table instead. I don't know if it was the best way, but it worked!
Thanks again,
Bradley
nico5038 3,080
Recognized Expert Specialist
The "basic" solution would be to trigger the export from the frmReport and have the fields filled as required.
The other option is to change "[Forms]![frmReports]![txtFrom],"mm/yyyy"" into:
[Enter Month/Year(mm/yyyy): ] and Access will ask to enter the value.
Nic;o)
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Anders Dalvander |
last post by:
os.popen does not work with parameters inside quotes, nor do
os.popen. At least on Windows.
import os
cmd = '"c:\\command.exe" "parameter inside quotes"'
os.popen4(cmd)
Results in the following error message:
'c:\\command.exe" "parameter inside quotes' is not recognized as an
|
by: Brad Smith |
last post by:
I have a unique requirement to run an executable file from withing a
HTML document. The HTML is actually embedded in an email sent as a
notification to a user of our application. I need to include a link in
the HTML which launches the application (exe) with command line
parameters.
The Application and users are all within our Intranet - the
application is accessible through a network dirve. I understand to
enable this to happen, a user...
|
by: Roy Gourgi |
last post by:
Hi,
I am trying to add a record with the INSERT INTO with parameters. Here is my
code. I get the error message now that it expects a ")". I have
tried a few different things, but to no avail. What am I doing wrong???? I
can't believe that it is so difficult to add a record in a database.
TIA
Roy
|
by: Laura K |
last post by:
This is probably a simple question but I want to make sure I am doing
it right.
I have a spoc with two select statements which results in two tables.
Very Basic
---------------------------------------------------------------------------------
@strProductCode nvarchar (50)
|
by: ABC |
last post by:
What methods can export excel file from stored procedure with parameters
which input from web form?
| |
by: Hexman |
last post by:
Hello All,
Well I'm stumped once more. Need some help. Writing a simple select and update program using VB.Net 2005 and an Access DB. I'm using parameters in
my update statement and when trying to update a record, I get a "No value given for one or more parameters." error message.
I use a Select with parameters and an Update with parameters. The select works fine. I thought I've tried everything (evidently not) to get this
working. ...
|
by: akoymakoy |
last post by:
I badly need help on running a .exe file in vb with parameters
Dim retval
retval = Shell("E:\test\tagger.exe < 1.txt > TAG2.txt ", 1)
End Sub
but it seems to run tagger.exe only and doesnt pass the values < 1.txt > TAG2.txt
this .exe need "< 1.txt > TAG2.txt " as parameters
|
by: titan.nyquist |
last post by:
Is there a typical way to create a dictionary (or hash table) with two
values, instead of one?
Currently, my data structure is TWO dictionaries, each with matching
and fully sychronized keys. This allows me to have one key with two
values (one value in each dictionary). This is ugly code as the
dictionaries could get out of synch (due to a bug or something).
Titan
|
by: Vlad |
last post by:
I am trying to run the dos command "rename C:\Temp\MyTest1.txt
MyTest2.txt" from VB.net - to use the shell command I have found I
have to use a bat file otherwise I get an "The system cannot find the
file specified" error.
I am trying to use
Dim MyProcess As New ProcessStartInfo
MyProcess.FileName = "ren"
MyProcess.Arguments = "C:\Temp\MyTest1.txt MyTest2.txt"
|
by: blazted |
last post by:
I am trying to run a exe with parameters from a VB script. I tried writing it using a bat file but it does not close the dos prompt window so I am trying to rewrite it using VB script. It works if I do not specify any parameters for the exe to run. But i need it to run with the parameters. Not sure how to get it to run with the parameters. I need it to execute the exe then close the script. Here is my script.
strComputer = "."
Set...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |