473,698 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MS Access Query Export Error "Too Few Parameters. Expected 1"

1 New Member
Hi guys,

I am trying to create export specifications for one of my queries. Now when I run the query on its own, it works perfectly. However when I try to export the data I get back the error message "Too few parameters. Expected 1." Has anyone encountered this before? Below is my SQL statement in case it helps:


SELECT ClaimDetail.cd_ ClaimId, BatchMaster.bm_ BatchId, ClaimDetail.cd_ BatchId, ClaimDetail.cd_ ClaimNum, ClaimDetail.exp ectedResult, ClaimDetail.REC _CODE_IN, ClaimDetail.DAT A_CENTRE_NUM, ClaimDetail.DAT A_CENTRE_SEQNUM , ClaimDetail.PAY EE_NUM, ClaimDetail.PRA CTITIONER_NUM, ClaimDetail.MSP _REGISTRATION, ClaimDetail.NAM E_VERIFY, ClaimDetail.DEP ENDENT_NUM, ClaimDetail.BIL LED_SRV_UNITS, ClaimDetail.SER VICE_CLARIFICAT ION, ClaimDetail.MSP _ANATOMICAL_ARE A, ClaimDetail.AFT ER_HOURS_SERVIC E_INDICATOR, ClaimDetail.NEW _PROGRAM_INDICA TOR, ClaimDetail.BIL LED_FEE_ITEM, ClaimDetail.BIL LED_AMOUNT, ClaimDetail.PAY MENT_MODE, ClaimDetail.SER VICE_DATE, ClaimDetail.SER VICE_TO_DAY, ClaimDetail.SUB MISSION_CODE, ClaimDetail.EXP ANDED_SUBMISSIO N, ClaimDetail.DIA GNOSTIC_CODE_1, ClaimDetail.DIA GNOSTIC_CODE_2, ClaimDetail.[DIAGNOSTIC_CODE _-3], ClaimDetail.DIA GNOSTIC_EXPAND, ClaimDetail.SER VICE_LOCATION_C D, ClaimDetail.REF _PRACT_1_CD, ClaimDetail.REF _PRACT_1, ClaimDetail.REF _PRACT_2_CD, ClaimDetail.REF _PRACT_2, ClaimDetail.TIM E_CALL_RECD_SRV , ClaimDetail.SER VICE_TIME_START , ClaimDetail.SER VICE_TIME_FINIS H, ClaimDetail.BIR TH_DATE, ClaimDetail.OFF ICE_FOLIO_NUMBE R, ClaimDetail.COR REPSONDENCE_COD E, ClaimDetail.CLA IM_SHORT_COMMEN T, ClaimDetail.MVA _CLAIM_CODE, ClaimDetail.ICB C_CLAIM_NUM, ClaimDetail.ORI GINA_MSP_FN, ClaimDetail.FAC ILITY_NUM, ClaimDetail.FAC ILITY_SUB_NUM, ClaimDetail.FIL LER_CLAIM_C02_R CD, ClaimDetail.OIN _INSURER_CODE, ClaimDetail.OIN _REGISTRATION, ClaimDetail.OIN _FIRST_NAME, ClaimDetail.OIN _SECOND_NAME, ClaimDetail.OIN _SURNAME, ClaimDetail.OIN _SEX_CODE, ClaimDetail.OIN _ADDRESS_1, ClaimDetail.OIN _ADDRESS_2, ClaimDetail.OIN _ADDRESS_3, ClaimDetail.OIN _ADDRESS_4, ClaimDetail.OIN _POSTAL_CODE
FROM BatchMaster INNER JOIN ClaimDetail ON BatchMaster.bm_ BatchId = ClaimDetail.cd_ BatchId
WHERE (((BatchMaster. bm_BatchId)=[Forms]![BatchMainForm]![bm_BatchId]));



I have 2 tables - Master/Detail

Expand|Select|Wrap|Line Numbers
  1.  BatchMaster 
  2. ---------------
  3. bm_BatchId PK AutoNumber
  4. bm_BatchNum Text
  5. bm_Description Text
  6.  
  7.  
  8. ClaimDetail
  9. --------------
  10. cd_ClaimId PK AutoNumber
  11. cd_BatchId Number
  12. cd_ClaimNum Text
  13. etc.
  14.  
As for forms go, I have 2 forms. The BatchMainForm contains a subform (ClaimDataForm) which is a datasheet.

Thanks guys, any help is appreciated.

---Punker
Dec 7 '05 #1
1 8036
PEB
1,418 Recognized Expert Top Contributor
Hi,

Do You export your data using the export command in Access or you use a command in VB?

If it is in VB maybe you have to assign to the parameters their values!

And the export command in Access have to run normally???

Have a nice luck!
Sep 9 '06 #2

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

Similar topics

5
19041
by: theroo | last post by:
Hi there, I am driving myself crazy over this problem. I have used this very same function in another page without any problems, but now I am experiencing the "Error: Expected ';'" when i try and run it, and it doesn't fire (obviously, because there is an error). The code is:
2
1912
by: Susan Bricker | last post by:
Greetings Experts ... I have a routine that is invoked when a command button is clicked. The button is located in a form that is tied to a table of Project records. Each Project Record has 0 to many Task Records associated with it (in another table). I want to 'logically remove' the Project Record and all Task Records for the Project (by setting the field in each of those records to 'true'). Here is the problem ... in the routine I...
1
6654
by: STAGED | last post by:
The script: proc bugsy { } { global helmet pack forget .widget1 if { $helmet(key1) } { pack .widget2 -anchor nw -side top -expand 0 } else { show_new_widget }
5
2355
by: ric_deez | last post by:
Hi there, I would like to create a simple search form to allow users to search for a job number based on a number of parameters. I think I understand how to use parameteres associated with Stored Procedures with a data reader to add various parameters. However, if I have a stored procedure such as CREATE usp_SelectfromJobNumbers (@par1 datatype, @par2 datatype, @par3 datatype)
3
5422
by: wwwursa | last post by:
I am trying to use the Right function in a VB6 program. I have used it used many times before in other programs. When I press the enter key after entering the code line, the word "Right" turns into "RIGHT" in all capital letters The line is LongText = RIGHT(LongText, 2) I have used Option Explicit to make sure all variables are correct. When I run the entire program I get an the following error message "Compile error Expected...
4
10681
by: HeislerKurt | last post by:
I'm getting the infamous error, "Too few parameters. Expected 2", when executing an update SQL statement in VBA. I assume it's a SQL syntax issue, but I can't find the problem, and I used a VBA generator to generate the SQL statement. Debugging points to this line: dbs.Execute strSQl, dbFailOnError Here's the code:
6
2457
by: Matsam | last post by:
Hi, I am using ADODB connection in ASP and want to run a select query depending on a runtime criteria. But its not working and giving error "Too few parameters. Expected 1." But the same thing is working when pasted in Access query. The problem comes when including a LIKE criteria. can anybody help me ?? Matsam
6
5320
by: Lawrence Spector | last post by:
I ran into a problem using g++. Visual Studio 2005 never complained about this, but with g++ I ran into this error. I can't figure out if I've done something wrong or if this is a compiler bug. Here's a very simple example which should illustrate what I'm doing. #include <iostream> template <class T> class TestBase {
3
3829
by: Kassimu | last post by:
Hi there, I have a table with thousands of record entries, usually the user searches this table through SearchForm resulting into some recordset. What I need to do on this recordset is to concatenate the contents of all the records for one field-, and populate the resulting into textbox of a form Private Sub Form_Load() Dim db As Database Dim rstUpdates As Recordset Set db = CurrentDb Set rstUpdates = db.OpenRecordset("Daily...
9
11186
by: Rohit | last post by:
I am trying to initialize an array whose initializers depend on value of Enums. I take enum and then decide the initializer value, so that even if enum value changes because of addition to list even then I should be able to get correct value for the array element. I need value and state to be present in a single byte thats why I use macros. Here is what my code look like: typedef enum
0
8603
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,...
0
9157
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8893
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,...
0
8861
tracyyun
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...
0
7723
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5860
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();...
1
3045
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2328
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
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...

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.