NWildblood
Technical User
Hi - any help gratefully received !
Am brand new to an team where a colleague has asked me to help her out and find a solution to enforce 4 decimal places in a table that is being updated using a query.
The SQL in the query fails to enforce this in the table (SQL below), so I was wondering if there's some simple VB to do so.?
I am not a regular vb coder, and have tried but failed miserably so far latest example being:
_______________
Sub SetFormat()
CurrentDb.TableDefs("GEOGIS_Data_with_TME_FINAL").Fields("FirstOfS_MLG").Properties("DecimalPlaces") = 4
End Sub
_______________
For reference, the SQL is here
UPDATE GEOGIS_Data_with_TME_FINAL SET GEOGIS_Data_with_TME_FINAL.FirstOfS_MLG = Format([GEOGIS_Data_with_TME_FINAL].[FirstOfS_MLG],"0.0000"), GEOGIS_Data_with_TME_FINAL.FirstOfF_MLG = Format([GEOGIS_Data_with_TME_FINAL].[FirstOfF_MLG],"0.0000");
"No-one got everything done by Friday except Robinson Crusoe...
Am brand new to an team where a colleague has asked me to help her out and find a solution to enforce 4 decimal places in a table that is being updated using a query.
The SQL in the query fails to enforce this in the table (SQL below), so I was wondering if there's some simple VB to do so.?
I am not a regular vb coder, and have tried but failed miserably so far latest example being:
_______________
Sub SetFormat()
CurrentDb.TableDefs("GEOGIS_Data_with_TME_FINAL").Fields("FirstOfS_MLG").Properties("DecimalPlaces") = 4
End Sub
_______________
For reference, the SQL is here
UPDATE GEOGIS_Data_with_TME_FINAL SET GEOGIS_Data_with_TME_FINAL.FirstOfS_MLG = Format([GEOGIS_Data_with_TME_FINAL].[FirstOfS_MLG],"0.0000"), GEOGIS_Data_with_TME_FINAL.FirstOfF_MLG = Format([GEOGIS_Data_with_TME_FINAL].[FirstOfF_MLG],"0.0000");
"No-one got everything done by Friday except Robinson Crusoe...