B
Benno
Guest
can anyone help me with this....I am importing data from an external source (cms), the data appends to the table as it should and the empty date column is populated with the chosen date from the calendar...the problem is, i'm stuck in this loop and can't find what the problem is. I am receiving Error 20, whatever that might be?!?!?
Any help greatly appreciated. (i've obviously not posted all of my code here, just the bit where i get stuck in the god damn loop!)
On Error GoTo errh
Execution:
PauseTime = 1 ' Set duration.
Start = Timer ' Set start time.
Do While Timer < Start + PauseTime
DoEvents ' Yield to other processes.
Loop
DoCmd.OpenTable "Ericsson", acViewNormal, acEdit = True
DoCmd.RunCommand acCmdPasteAppend
DoCmd.Close acTable, "Ericsson", acSaveYes
DoCmd.RunSQL "UPDATE Ericsson SET Ericsson.[StatsDate] = [Forms]![Form1].[script_date].[value] WHERE (((Ericsson.StatsDate) Is Null));"
errh:
Msg = "Error # " & Str(Err.Number) & " was generated by " & Err.Source & Chr(13) & Err.Description
Resume Execution
Any help greatly appreciated. (i've obviously not posted all of my code here, just the bit where i get stuck in the god damn loop!)
On Error GoTo errh
Execution:
PauseTime = 1 ' Set duration.
Start = Timer ' Set start time.
Do While Timer < Start + PauseTime
DoEvents ' Yield to other processes.
Loop
DoCmd.OpenTable "Ericsson", acViewNormal, acEdit = True
DoCmd.RunCommand acCmdPasteAppend
DoCmd.Close acTable, "Ericsson", acSaveYes
DoCmd.RunSQL "UPDATE Ericsson SET Ericsson.[StatsDate] = [Forms]![Form1].[script_date].[value] WHERE (((Ericsson.StatsDate) Is Null));"
errh:
Msg = "Error # " & Str(Err.Number) & " was generated by " & Err.Source & Chr(13) & Err.Description
Resume Execution
Last edited: