A
Albert D. Kallal
I am guessing, but it looks like you want to take todays date..and subtract
7..
try:
dim strFile as string
strFile = "C:\Ps\BackUp\" & _
Format(Date - 7 , "yyyymmdd") & ".MDB"
If Dir(strFile ) <> Then
DoCmd.OpenForm "frmMsgInfo"
Forms!frmMsgInfo!TxtMsg = "Doesn't Exsist"
Else
Kill strFile
End If
You don't need to add the " to the actual string used....
7..
try:
dim strFile as string
strFile = "C:\Ps\BackUp\" & _
Format(Date - 7 , "yyyymmdd") & ".MDB"
If Dir(strFile ) <> Then
DoCmd.OpenForm "frmMsgInfo"
Forms!frmMsgInfo!TxtMsg = "Doesn't Exsist"
Else
Kill strFile
End If
You don't need to add the " to the actual string used....