473,386 Members | 1,864 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,386 software developers and data experts.

Too few parameters. Expected 1

I want to select data from a table called tblfeesdetails into another table with two criteria but it stops in line three(3) and highlighted yellow showing the error "Too few parameters. Expected 1"


Expand|Select|Wrap|Line Numbers
  1. strsqldetails = "Select * from tblfeesdetails where groupid = """ & mgroupid & """ AND Tdate = Date ; "
  2.  
  3. Set rstd = CurrentDb.OpenRecordset(strsqldetails)
Apr 22 '11 #1

✓ answered by TheSmileyCoder

Instead of the doubled up quotes try this:
Expand|Select|Wrap|Line Numbers
  1. "Select * from tblfeesdetails where groupid = '" & mgroupid & "' AND Tdate = Date"
Note that this is a SELECT query, and you will simply open a recordset of the results. There is nothing here to transfer any data into a new table.

1 1170
TheSmileyCoder
2,322 Expert Mod 2GB
Instead of the doubled up quotes try this:
Expand|Select|Wrap|Line Numbers
  1. "Select * from tblfeesdetails where groupid = '" & mgroupid & "' AND Tdate = Date"
Note that this is a SELECT query, and you will simply open a recordset of the results. There is nothing here to transfer any data into a new table.
Apr 22 '11 #2

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

Similar topics

6
by: Miranda | last post by:
Hello, could somebody please help me figure this error out. I'm at my wits end here. This is my connection & SQL statement: <%@Language="Javascript" %> <!--#include...
8
by: kbrad | last post by:
I am using the following code in asp to select some data from an access db. recSel is defined and set further up my webpage, as is rsUpdate User. I cannot work out how to get past this error...
2
by: nub | last post by:
Using this exact query: ------------------------------- SELECT ProductName, count(ProductName) as Quantity, sum(TotalPrice) as Total FROM OrderDetails GROUP BY ProductName ORDER BY Total DESC ...
7
by: Dee | last post by:
Running an AfterUpdate event procedure, I get the following error: "Too few parameters. Expected 1." My code is as follows: Private Sub DealerID_AfterUpdate() Dim db As DAO.Database
8
by: RC | last post by:
In my Access 2002 form, I have a combo box and on the AfterUpdate event I use DoCmd.RunSQL ("UPDATE .... to update records in a table. When it starts to run I get a message "You are about to...
1
by: bonnie.tangyn | last post by:
Hello all I get Too few parameters expected 2 error and "The MS Jet Database engine cannot find the input table or query "myTempTablename". Make sure it exists and that its name is spelled...
1
by: Punker | last post by:
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...
6
by: Michael R | last post by:
Please help me with this. I have a form in which I would like to present results from a CrossTab query in a subform. I don't need the query to be bounded to a master field. Also, I have a...
1
by: TheGuyKnownAsY | last post by:
Hi everyone, I'm new here. My problem: the parameters that appear after rs.open when oppening the SQL connection. Microsoft OLE DB Provider for ODBC Drivers error '80040e10' Too few...
1
by: ryan langley | last post by:
I have a access query which i filter using 3 combo boxes within a form (day, location, id). I have created a function to populate a access email with email addresses form the query this worked fine...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...

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.