lookforsmt
Registered User.
- Local time
- Tomorrow, 01:01
- Joined
- Dec 26, 2011
- Messages
- 672
Hi!
I have 2 tables "26_Master" and "tbl Date_Entry" and 1 query "qry4"
After I run a query "qry4" which adds date in a new table "tbl_Date_Entry" from table "26_Master" there is a popup message which displays the number of items appended but it does not give the date value appended.
i am getting below popup message:
" 2 - 12:00:00 AM date added"
Below is what i am looking for"
"2 date added"
05/10/2017
06/10/2017
My code is as follows:
any suggestions how do i get the date value in the popup message
Thanks
I have 2 tables "26_Master" and "tbl Date_Entry" and 1 query "qry4"
After I run a query "qry4" which adds date in a new table "tbl_Date_Entry" from table "26_Master" there is a popup message which displays the number of items appended but it does not give the date value appended.
i am getting below popup message:
" 2 - 12:00:00 AM date added"
Below is what i am looking for"
"2 date added"
05/10/2017
06/10/2017
My code is as follows:
Code:
Private Sub cmdAddDate_Click()
On Err GoTo Park
Dim qdef As DAO.QueryDef
Dim Entry_Date As Date
Set qdef = CurrentDb.QueryDefs("qry4")
qdef.Execute
MsgBox qdef.RecordsAffected & " - " & Entry_Date & " " & "date added"
Set qdef = Nothing
Park:
If Err.Number > 0 Then
MsgBox Err.Number & " " & Err.Description
End If
If Me.Dirty Then
Me.Dirty = False ' save the record
End If
End Sub
any suggestions how do i get the date value in the popup message
Thanks