alkrm
Registered User.
- Local time
- Today, 04:35
- Joined
- Aug 13, 2003
- Messages
- 39
hi, in my data base there is a form with a command button that run a macro for importing excel file to a table of my data base,
the table is consisting fields that is uploading when running the macro. and there is" date" field which i desire to make the user enter it Manually ,and let it apply to the imported .
at the moment, when importing the date field records are empty.
it is more than 100 fields so it will be stupid to make the user enter it one by one,
is there is a way ,"vb code" that can be input to the command button letting the user write the date? " to a form which will be created for this reason?" and let it apply for the empty records of date field?
this is the command button code
Private Sub Command20_Click()
On Error GoTo Err_Command20_Click
Dim xx As String
Dim st As String
'__________Run Import____________
xx= "Import Excel Table"
DoCmd.RunMacro xx
'__________Refresh_______________
DoCmd.Close
st = "FWDTIMSA"
DoCmd.OpenForm st, , , stLinkCriteria
Exit_Command20_Click:
Exit Sub
Err_Command20_Click:
MsgBox Err.Description
Resume Exit_Command20_Click
the table is consisting fields that is uploading when running the macro. and there is" date" field which i desire to make the user enter it Manually ,and let it apply to the imported .
at the moment, when importing the date field records are empty.
it is more than 100 fields so it will be stupid to make the user enter it one by one,
is there is a way ,"vb code" that can be input to the command button letting the user write the date? " to a form which will be created for this reason?" and let it apply for the empty records of date field?
this is the command button code
Private Sub Command20_Click()
On Error GoTo Err_Command20_Click
Dim xx As String
Dim st As String
'__________Run Import____________
xx= "Import Excel Table"
DoCmd.RunMacro xx
'__________Refresh_______________
DoCmd.Close
st = "FWDTIMSA"
DoCmd.OpenForm st, , , stLinkCriteria
Exit_Command20_Click:
Exit Sub
Err_Command20_Click:
MsgBox Err.Description
Resume Exit_Command20_Click