Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I Wrote a query with one parameter in access 2007 then send it to C#
But all Fields come except the parameter and the field that I inserted as parameter
tblMaint.mShift=[shift]
shift is my parameter and mShift is my Field
Posted
Comments
walterhevedeich 20-Nov-13 3:37am    
It would be helpful if you can post the relevant query and code.
[no name] 20-Nov-13 3:46am    
PARAMETERS shift Text ( 255 );
SELECT tblMaintenance.mName, tblMaintenance.mFamily, tblMaintenance.mShift, tblPresenceStatus.pID, tblPresenceStatus.pStatus, tblPresenceStatus.pDate, tblPresenceStatus.pIn, tblPresenceStatus.pOut
FROM tblMaintenance LEFT JOIN tblPresenceStatus ON tblMaintenance.[mID] = tblPresenceStatus.[pmID]
WHERE (((tblMaintenance.mShift)=[shift]));
agent_kruger 20-Nov-13 8:59am    
you have written the query now provide the code that you have wriiten in c# to cross match.

1 solution

You can't send parameter from Access query to C# (whatever it means)!

You can build your own query using ADO.NET. Please see my past answer: MS Access Not Updated[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900