473,418 Members | 2,040 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,418 software developers and data experts.

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

1
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.expectedResult, ClaimDetail.REC_CODE_IN, ClaimDetail.DATA_CENTRE_NUM, ClaimDetail.DATA_CENTRE_SEQNUM, ClaimDetail.PAYEE_NUM, ClaimDetail.PRACTITIONER_NUM, ClaimDetail.MSP_REGISTRATION, ClaimDetail.NAME_VERIFY, ClaimDetail.DEPENDENT_NUM, ClaimDetail.BILLED_SRV_UNITS, ClaimDetail.SERVICE_CLARIFICATION, ClaimDetail.MSP_ANATOMICAL_AREA, ClaimDetail.AFTER_HOURS_SERVICE_INDICATOR, ClaimDetail.NEW_PROGRAM_INDICATOR, ClaimDetail.BILLED_FEE_ITEM, ClaimDetail.BILLED_AMOUNT, ClaimDetail.PAYMENT_MODE, ClaimDetail.SERVICE_DATE, ClaimDetail.SERVICE_TO_DAY, ClaimDetail.SUBMISSION_CODE, ClaimDetail.EXPANDED_SUBMISSION, ClaimDetail.DIAGNOSTIC_CODE_1, ClaimDetail.DIAGNOSTIC_CODE_2, ClaimDetail.[DIAGNOSTIC_CODE_-3], ClaimDetail.DIAGNOSTIC_EXPAND, ClaimDetail.SERVICE_LOCATION_CD, ClaimDetail.REF_PRACT_1_CD, ClaimDetail.REF_PRACT_1, ClaimDetail.REF_PRACT_2_CD, ClaimDetail.REF_PRACT_2, ClaimDetail.TIME_CALL_RECD_SRV, ClaimDetail.SERVICE_TIME_START, ClaimDetail.SERVICE_TIME_FINISH, ClaimDetail.BIRTH_DATE, ClaimDetail.OFFICE_FOLIO_NUMBER, ClaimDetail.CORREPSONDENCE_CODE, ClaimDetail.CLAIM_SHORT_COMMENT, ClaimDetail.MVA_CLAIM_CODE, ClaimDetail.ICBC_CLAIM_NUM, ClaimDetail.ORIGINA_MSP_FN, ClaimDetail.FACILITY_NUM, ClaimDetail.FACILITY_SUB_NUM, ClaimDetail.FILLER_CLAIM_C02_RCD, 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 8014
PEB
1,418 Expert 1GB
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
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...
2
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...
1
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
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...
3
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...
4
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...
6
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...
6
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. ...
3
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...
9
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...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
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...

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.