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!

Incompatible Data Types

Status
Not open for further replies.

tgtfranz

Programmer
Mar 8, 2007
37
US
This is probably out there somewhere but with the search functionality not working it makes it a little difficult. :)

I have a form in MS Access that is being populated by a stored procedure which is passing two parameters to the database. One is smalldatetime (@EnterCheckDate), the other is int (@EnterEmpNo).

That main form works great.

Now I need to add a subform that is gathering data from a view in SQL Server. I link it to EmpNo (@EnterEmpNo) and that works fine but the data needs to be narrowed down some, so I try to link it by CheckDate (@EnterCheckDate) and I get the error that I am trying to link fields with incompatible data types. I tried removing the link for the CheckDate and used pay_check number (which is a better solution anyway) and I still got the same thing. AUGH!

I have verified that my joins in the sprocs and view are using the same data types. I have also made sure that my parameter values match how the fields are defined in the tables as well. Everything checks out.

I do not know what else to check.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top