G
Guest
Hi,
I need to set the format property of a field in a query using VBA but I'm
not sure how to do it? I've tried this....
CurrentDb().QueryDefs("Custom_Sales_Query").Fields("Downloads").Properties("Format").Value = "Standard"
....but it doesn't seem to do anything? As you can see, the field
"Downloads" is the field I am trying to change. I want it to be displayed as
standard and no decimal places. I need it to change the query properties as
I'm not displaying the data on the form. As I can change the properties
manually in the query, I'm assuming I can also do it using code, but I code
above doesn't do anything (note - it doesn't actually crash, it just doesn't
format the field). I also need to make it 0 decimal places.
Really appreciate any help!
I need to set the format property of a field in a query using VBA but I'm
not sure how to do it? I've tried this....
CurrentDb().QueryDefs("Custom_Sales_Query").Fields("Downloads").Properties("Format").Value = "Standard"
....but it doesn't seem to do anything? As you can see, the field
"Downloads" is the field I am trying to change. I want it to be displayed as
standard and no decimal places. I need it to change the query properties as
I'm not displaying the data on the form. As I can change the properties
manually in the query, I'm assuming I can also do it using code, but I code
above doesn't do anything (note - it doesn't actually crash, it just doesn't
format the field). I also need to make it 0 decimal places.
Really appreciate any help!