Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Error Message

Status
Not open for further replies.

Brogrim

Technical User
Jul 28, 2000
184
IE
I have a text field that I am trying to include in a query, when I try and run the query I get the following message

Invalid Arguement

It was running fine and now I am getting this message
 
Can you please post the SQL code of your query ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Hope this helps

SELECT tblMembership.MembershipID, tblMembership.FirstName, tblMembership.SecondName, tblCounty.CountyID, [HouseNo] & " " & [HouseLetter] & " " & [Address1] & " " & [Address2] & " " & [Address3] & " " & [County] & " " & [PostCode] AS Address, tblMembership.DOB, tblMembership.PrimaryDisabilityID, tblMembership.GenderID, tblMembership.TitleID
FROM (tblCounty INNER JOIN tblMembership ON tblCounty.CountyID = tblMembership.CountyID) INNER JOIN tblBadge ON tblMembership.MembershipID = tblBadge.MembershipID
WHERE (((tblMembership.FirstName) Like "*" & [Forms]![frmSwitchboard]![txtFirstName] & "*")) OR (((tblMembership.SecondName) Like "*" & [Forms]![frmSwitchboard]![txtSecondName] & "*")) OR (((tblCounty.CountyID) Like "*" & [Forms]![frmSwitchboard]![cboCounty] & "*"))
ORDER BY tblMembership.FirstName, tblMembership.SecondName;
 
I am now getting an error message when trying to open the table in datasheet view, it will allow me to look at the design view but not the datasheet

Starting to Panic
 
When you try to execute this query from the SQL view pane of the Query designer window, where go the cursor after the error ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top