Well I tried that out but I couldnt get it to work. So now I am trying to just get the insert and I cant even get that working.
my code looks like this:
Create Procedure stpCreateReturn
@copID int,
@copName varchar,
@copCity varchar,
@copProv char,
@copCountry varchar,
@copAddress varchar,
@copStatus varchar,
@copEstCost float
AS
INSERT INTO tblContProj (copID, copName, copCity, copProv, copCountry, copAddress, copStatus, copEstCost)
VALUES (@copID, @copName, @copCity, @copProv, @copCountry, @copAddress, @copStatus, @copEstCost)
return
Now copID is the autonumber so I dont know if I am supposed to leave that out of the insert and values parameters or not. when I execute the query I just leave the copID set to <DEFAULT>. All of these data types specified match the data types I specified in the table in SQL server so I am not sure why it doesnt work. The error I get is this
Running dbo."stpCreateReturn" ( @copID = <DEFAULT>, @copName = test, @copCity = test, @copProv = te, @copCountry = test, @copAddress = test, @copStatus = <NULL>, @copEstCost = <NULL> ).
Application uses a value of the wrong type for the current operation.
No rows affected.
@RETURN_VALUE =
Finished running dbo."stpCreateReturn".