This question might sound dumb, but I am not sure how to make this possible. I have created a table using Vba, and some of the fields in the table I have specified to accept doubles, since I am expecting dollar amount here. I want to be able to add a dollar sign as well as the number to the table. Here is how I am creating my field:
Set fld = table.CreateField("Amount", dbDouble)
table.Fields.Append fld
in another funtion I am reading in a file that has the amount with no dollar sign next to it, so I want to add it. Here is what I have tried and it is not working:
rs.Fields("Total").Value = "$" & Round(total, 2)
can anyone be of any help, thank you in advance.
Set fld = table.CreateField("Amount", dbDouble)
table.Fields.Append fld
in another funtion I am reading in a file that has the amount with no dollar sign next to it, so I want to add it. Here is what I have tried and it is not working:
rs.Fields("Total").Value = "$" & Round(total, 2)
can anyone be of any help, thank you in advance.