![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have following code behind one of my unbound combo box: Dim StrSql As String strSql = "SELECT tblCustomer.CustomerCode, tblCustomer.CustomerName, tblCustomer.BillingAddress " & vbCrLf & _ "FROM tblCustomer;" Me.cmbfind.RowSourceType = "Table/Query" Me.cmbfind.RowSource = StrSql Me.cmbfind.ColumnHeads = True Me.cmbfind.ColumnCount = 3 Me.cmbfind.ColumnWidths = "1 in;2 in;.95 in" Me.cmbfind.ListWidth = 4 I have also 3 radio buttons on my form 1. CustomerCode 2. CustomerName 3. BillingAddress I want that when I click no. 1 radio button combo box shows 3 columns as customer code > CustomerName > BillingAddress when I click no. 2 radio button combo box shows 3 columns as CustomerName > customer code > BillingAddress and so on, means my combo box columns moves according to my choice I have already program my radio buttons, how I do this usin vba p.s I am not willing to use multiple select statements behind each radio button |
#3
| |||
| |||
|
|
Hi, I have following code behind one of my unbound combo box: Dim StrSql As String strSql = "SELECT tblCustomer.CustomerCode, tblCustomer.CustomerName, tblCustomer.BillingAddress " & vbCrLf & _ "FROM tblCustomer;" * * Me.cmbfind.RowSourceType = "Table/Query" * * Me.cmbfind.RowSource = StrSql * * Me.cmbfind.ColumnHeads = True * * Me.cmbfind.ColumnCount = 3 * * Me.cmbfind.ColumnWidths = "1 in;2 in;.95 in" * * Me.cmbfind.ListWidth = 4 I have also 3 radio buttons on my form 1. CustomerCode 2. CustomerName 3. BillingAddress I want that when I click no. 1 radio button combo box shows 3 columns as customer code > CustomerName > BillingAddress when I click no. 2 radio button combo box shows 3 columns as CustomerName > customer code > BillingAddress and so on, means my combo box columns moves according to my choice I have already program my radio buttons, how I do this usin vba p.s I am not willing to use multiple select statements behind each radio button |
![]() |
| Thread Tools | |
| Display Modes | |
| |