I tried transpose, but it's not what I need.
Here is some basic code I whipped up in Excel that does what I want. Is it possible to do something like this with Access VBA?
Code:
Private Sub CommandButton1_Click()
'count rows that have data
Dim Rcount As Integer
Rcount = Application.CountA(Range("A:A"))
Dim CopyRow As Integer
Dim PasteRow As Integer
Dim Variable As String
Dim VariableCol As Integer
PasteRow = 2
'loop through columns and row, copying data down
For VariableCol = 2 To 4
For CopyRow = 2 To Rcount
Variable = Cells(1, VariableCol)
Cells(PasteRow, 7) = Cells(CopyRow, 1) 'Date
Cells(PasteRow, 8) = Cells(CopyRow, VariableCol) 'Datavalue
Cells(PasteRow, 9) = Variable 'Variable name
PasteRow = PasteRow + 1
Next CopyRow
Next VariableCol
End Sub