M
Mark A. Sam
I am using Access2002 and getting errors in this code:
Dim rst As Recordset
Set rst = CurrentDb.OpenRecordset("Order Entry Hold Status Notes",
dbOpenDynaset, dbSeeChanges)
rst.AddNew
rst![OrdID] = Parent.[OrdID]
rst![Date] = Date
rst![Time] = Time()
rst.Update
Run time error 2427. You have entered an expression that has no value.
This means the Date Function and Time function.
I placed a textbox in a form with the ControlSource, =Date() which
displayed the date without a problem
The libraries I am using are:
Visual Basic for Applications
Microsoft Access 10.0 Object Library
Microsoft Access DAO 3.6 Object Library
OLE Automation
Thanks in advance.
God Bless,
Mark A. Sam
Dim rst As Recordset
Set rst = CurrentDb.OpenRecordset("Order Entry Hold Status Notes",
dbOpenDynaset, dbSeeChanges)
rst.AddNew
rst![OrdID] = Parent.[OrdID]
rst![Date] = Date
rst![Time] = Time()
rst.Update
Run time error 2427. You have entered an expression that has no value.
This means the Date Function and Time function.
I placed a textbox in a form with the ControlSource, =Date() which
displayed the date without a problem
The libraries I am using are:
Visual Basic for Applications
Microsoft Access 10.0 Object Library
Microsoft Access DAO 3.6 Object Library
OLE Automation
Thanks in advance.
God Bless,
Mark A. Sam