Create table with access VBA and format fields
问题 I want to create a table using access vba with formatted fields. How do I format currency field with "standard" format while creating the table? Private Sub CreateTable_Click() DoCmd.RunSQL "CREATE TABLE Test( " & _ "[id] AUTOINCREMENT PRIMARY KEY, " & _ "[transaction_date] DATE, " & _ "[reference] TEXT(255)," & _ "[details] TEXT(255)," & _ "[debit] CURRENCY," & _ "[credit] INT);" End Sub 回答1: We use DAO for this. Here's an example. At the bottom, a Format is assigned to a field: ' Creates