Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    Nov 2007
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Change property (Access 2000)

    The data type of my field Exworks is set to Currency. How can I format this field to be in Euro ? I can easily do it in the design view of the table, but I need to put it in a code,but my code below is not right :
    Set tdf = dbs.TableDefs("Products”)
    Set fld = tdf.Fields(“ExWorks”)
    Set prp = fld.CreateProperty("Format", dbText, "Euro”")
    fld.Properties.Append prp

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Change property (Access 2000)

    Try
    <code>
    Set prp = fld.CreateProperty("Format", dbText, "€ #,##0.00;-€#,##0.00")</code>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •