F
FireGeek822
I have a form where I am trying to click on a button which will add
data that was entered into 2 unbound text boxes to a table.
In the following code, the error occurs at .Update. You can assume I
declared all the variables appropriately. In tblToDo, I have the Item
and SubItem fields set to 255 characters. The data in the Item box is
"Raw Data". The data in the SubItem box is "Import Actives .xls files
into DB" - Obviously neither is close to reaching 255 characters.
sql = "SELECT * FROM tblToDo " & _
"ORDER BY ToDoID"
Set rs = CurrentDb.OpenRecordset(sql)
With rs
x = ![ToDoID]
.AddNew
!ToDoID = x + 1
!ProjectID = ProjID
!Item = Item
!SubItem = SubItem
!Time = Null
!CompDate = Null
!Done = Null
.Update
.Close
End With
Any suggestions????
Tammy
data that was entered into 2 unbound text boxes to a table.
In the following code, the error occurs at .Update. You can assume I
declared all the variables appropriately. In tblToDo, I have the Item
and SubItem fields set to 255 characters. The data in the Item box is
"Raw Data". The data in the SubItem box is "Import Actives .xls files
into DB" - Obviously neither is close to reaching 255 characters.
sql = "SELECT * FROM tblToDo " & _
"ORDER BY ToDoID"
Set rs = CurrentDb.OpenRecordset(sql)
With rs
x = ![ToDoID]
.AddNew
!ToDoID = x + 1
!ProjectID = ProjID
!Item = Item
!SubItem = SubItem
!Time = Null
!CompDate = Null
!Done = Null
.Update
.Close
End With
Any suggestions????
Tammy