M
Marty
Hello
I had an earlier post about truncated floating point
numbers and the suggestion to change the number of decimal
points under the regional settings did not work. I think
this new code will work however I'm getting an "object
reqired" error. Can you please take a look at this short
bit of code and tell me where I'm going wrong? Obviously
I'm new at this.
Thank you so very much for all your help!
Marty
Dim FabFileName As String
FabFileName = Forms!frmFaBExportFileName.Text0.Value
If Right(FabFileName, 4) <> ".CSV" Or Right(FabFileName,
4) <> ".csv" Then
FabFileName = FabFileName & ".CSV"
End If
DoCmd.SetWarnings False
DoCmd.OpenQuery "qryCreateFaBSelectMarket", acViewNormal,
acEdit
DoCmd.OpenQuery "qryCreateFaBFile", acViewNormal, acEdit
tblFaBFile!LongitudeX.Format = "##00.00000" '***ERROR
OCCURS HERE*** Object Required
DoCmd.OpenQuery "Query2", acViewNormal, acEdit
DoCmd.TransferText acExportDelim, "NewTblFaBFile Export
Specification", "tblFaBFile", _
FabFileName, True, ""
DoCmd.Close acForm, "frmCreateFaBSelectMarket"
DoCmd.Close acForm, "frmFaBExportFileName"
mcrExportFaBFile_Exit:
Exit Function
I had an earlier post about truncated floating point
numbers and the suggestion to change the number of decimal
points under the regional settings did not work. I think
this new code will work however I'm getting an "object
reqired" error. Can you please take a look at this short
bit of code and tell me where I'm going wrong? Obviously
I'm new at this.
Thank you so very much for all your help!
Marty
Dim FabFileName As String
FabFileName = Forms!frmFaBExportFileName.Text0.Value
If Right(FabFileName, 4) <> ".CSV" Or Right(FabFileName,
4) <> ".csv" Then
FabFileName = FabFileName & ".CSV"
End If
DoCmd.SetWarnings False
DoCmd.OpenQuery "qryCreateFaBSelectMarket", acViewNormal,
acEdit
DoCmd.OpenQuery "qryCreateFaBFile", acViewNormal, acEdit
tblFaBFile!LongitudeX.Format = "##00.00000" '***ERROR
OCCURS HERE*** Object Required
DoCmd.OpenQuery "Query2", acViewNormal, acEdit
DoCmd.TransferText acExportDelim, "NewTblFaBFile Export
Specification", "tblFaBFile", _
FabFileName, True, ""
DoCmd.Close acForm, "frmCreateFaBSelectMarket"
DoCmd.Close acForm, "frmFaBExportFileName"
mcrExportFaBFile_Exit:
Exit Function