I'm creating an Access database to try to track average cost of inventory. I want to make it to where when a button is clicked on the form a column is added to the table that is named with the current date and the word Quantity and another column is added with the current date and the word Price. I can't just add columns named quantity and price because I am hoping to be able to use this over time. So I want to know on mm/dd/yyyy we bought x widgets for y dollars a piece. Then a week later I want to be able to hit the same button and add more lines with the new current date. Is this even possible? I'm using Microsoft Access 2016. I've tried the following with some variations based on what I've researched but nothing seems to work. AvgCost is the table name. Also I'm very very new at this.
Private Sub Record_Button_Click()
ALTER TABLE AvgCost ADD COLUMN Quantity_DATE()
End Sub
I keep getting an error message reading "Compile Error: Expected: ENd of Statement and it highlights AvgCost