PoisonousFish
Member
- Joined
- Jan 24, 2009
- Messages
- 8
- Programming Experience
- 1-3
Okay, i'm working in VB.NET 2005. I am trying to configure one of my table adapter fill queries by passing it a parameter. My parameter is named par1 and is a AnsiString.
SELECT EMPID, First_Name, Last_Name, Salary, Dept_ID
FROM Employee
WHERE (Dept_ID = Department.Dept_ID) AND (Dept_Name = @par1)
It does not like this it seems. We struggled with this last night in my vb.net class. Apparantly some things have changed from 2003 to 2005. Anyone have a clue on how to get this thing to work? Thanks for your time.
SELECT EMPID, First_Name, Last_Name, Salary, Dept_ID
FROM Employee
WHERE (Dept_ID = Department.Dept_ID) AND (Dept_Name = @par1)
It does not like this it seems. We struggled with this last night in my vb.net class. Apparantly some things have changed from 2003 to 2005. Anyone have a clue on how to get this thing to work? Thanks for your time.