B
Benj Nunez
Hello experts,
I've written a winform app that uses MS Access as my database. My sql
statement in a table adapter has this line:
SELECT USERID, BADGENUMBER, SSN, NAME, ATT, INLATE, OUTEARLY,
OVERTIME, SEP, HOLIDAY, LUNCHDURATION
FROM USERINFO
ORDER BY BADGENUMBER
Since the data type for BadgeNumber is of type "Text", the result is
not arranged properly because it's a string. Our solution then is to
introduce a cast using Val() so:
SELECT USERID, BADGENUMBER, SSN, NAME, ATT, INLATE, OUTEARLY,
OVERTIME, SEP, HOLIDAY, LUNCHDURATION
FROM USERINFO
ORDER BY VAL(BADGENUMBER)
Data gets sorted using this line, however, once I start compiling my
C# code, I get an error like:
"Error 1 The type or namespace name 'att2000DataSet' could not be
found (are you missing a using directive or an assembly reference?) D:
\Benj\CSharp Solution\EmployeeDataEntryForm
\ver1306\MainForm.Designer.cs 768 17 EmployeeMaintenance".
My question is, how come I get this error message when I didn't even
change a single line of code in my C# project, notably from my
MainForm.Designer.cs file?
Can someone help me out with this? Thanks in advance.
Benj
I've written a winform app that uses MS Access as my database. My sql
statement in a table adapter has this line:
SELECT USERID, BADGENUMBER, SSN, NAME, ATT, INLATE, OUTEARLY,
OVERTIME, SEP, HOLIDAY, LUNCHDURATION
FROM USERINFO
ORDER BY BADGENUMBER
Since the data type for BadgeNumber is of type "Text", the result is
not arranged properly because it's a string. Our solution then is to
introduce a cast using Val() so:
SELECT USERID, BADGENUMBER, SSN, NAME, ATT, INLATE, OUTEARLY,
OVERTIME, SEP, HOLIDAY, LUNCHDURATION
FROM USERINFO
ORDER BY VAL(BADGENUMBER)
Data gets sorted using this line, however, once I start compiling my
C# code, I get an error like:
"Error 1 The type or namespace name 'att2000DataSet' could not be
found (are you missing a using directive or an assembly reference?) D:
\Benj\CSharp Solution\EmployeeDataEntryForm
\ver1306\MainForm.Designer.cs 768 17 EmployeeMaintenance".
My question is, how come I get this error message when I didn't even
change a single line of code in my C# project, notably from my
MainForm.Designer.cs file?
Can someone help me out with this? Thanks in advance.
Benj