Hi,
I would like to set the RowSource for the ComboBox in the form in Excel in one of the two ways:
-------------------------------------------
1) using the result from the query in access.
With frmData
STRquery = " SELECT Acct FROM myTable GROUP BY Acct"
Set rstData = dbName.OpenRecordset(STRquery, dbOpenSnapshot)
.Acct.RowSourceurce.CopyFromRecordset rstData (????)
.Show
End With
--------------------------------------------
or
-------------------------------------------
2) just list the values without using the creating a range name in worksheet.
With frmData
.Acct.RowSource = "1,2,3,...,12"
.Show
End With
Thanks.
I would like to set the RowSource for the ComboBox in the form in Excel in one of the two ways:
-------------------------------------------
1) using the result from the query in access.
With frmData
STRquery = " SELECT Acct FROM myTable GROUP BY Acct"
Set rstData = dbName.OpenRecordset(STRquery, dbOpenSnapshot)
.Acct.RowSourceurce.CopyFromRecordset rstData (????)
.Show
End With
--------------------------------------------
or
-------------------------------------------
2) just list the values without using the creating a range name in worksheet.
With frmData
.Acct.RowSource = "1,2,3,...,12"
.Show
End With
Thanks.