fated_guys
October 9th, 2004, 08:00 PM
I need help to solve some things... I'm using MS Access, VB, ADO and ADOX
1.] how do make my tables accept NULL values? I already set the column's properties NULLABLE to true. but when i make queries like the one below, I'd get an error. hmmm... i messed up somewhere didn't i?
Cmd = "INSERT INTO Student VALUES('" & StudentID & "', '" & Last_Name & "', '" & First_Name & "', '" & Middle_Initial & "', '" & Course & "', '" & NULL & "', '" & NULL & "', '" & Final_Grade & "', '" & Final_Letter_Grade & "')"
2.] After making a select query how do I assign data from tables to a variable? Is it possible? You see, I have to make a select query then perform some mathematical operation before I assigned the product to another column of same table. In addition, i have to compare user's input against the data in the table and the only way I know how is by assigning the data to a variable before making comparison.
please help me because i'm already 35% away from project completion.
1.] how do make my tables accept NULL values? I already set the column's properties NULLABLE to true. but when i make queries like the one below, I'd get an error. hmmm... i messed up somewhere didn't i?
Cmd = "INSERT INTO Student VALUES('" & StudentID & "', '" & Last_Name & "', '" & First_Name & "', '" & Middle_Initial & "', '" & Course & "', '" & NULL & "', '" & NULL & "', '" & Final_Grade & "', '" & Final_Letter_Grade & "')"
2.] After making a select query how do I assign data from tables to a variable? Is it possible? You see, I have to make a select query then perform some mathematical operation before I assigned the product to another column of same table. In addition, i have to compare user's input against the data in the table and the only way I know how is by assigning the data to a variable before making comparison.
please help me because i'm already 35% away from project completion.