C
CharlesD
Hi,
I have a form that contains two combo boxes. One is cboMedicare for Medicare
codes and the other cboLocation that contains valid locations for the
Medicare code chosen in the combo box cboMedicare, I set the variable
..txtMedicareCode = .cboMedicare.Column(1). The cboLocation is populated
using the following SQL statement:
SELECT tblLocation.apkLOCATION, tblLocation.DESCRIPTION,
tblMedicare_Business_Rules_All_Fields.SERV_CODE
FROM tblLocation INNER JOIN tblMedicare_Business_Rules_All_Fields ON
tblLocation.apkLOCATION = tblMedicare_Business_Rules_All_Fields.apkLOCATION
WHERE
(((tblMedicare_Business_Rules_All_Fields.SERV_CODE)=[Forms]![frmDailyBillings]![txtMedicareCode]))
ORDER BY tblLocation.apkLOCATION;
Everything works well, but I cannot seem to get the combo box for
cboLocation to show the first record in the query results. When you use the
down arrow on the cboLocation the combo box has the proper locations for the
medicare code, I am able to have a text field show the
tblLocation.DESCRIPTION from the SQL query, by using the code:
With Me
.mservice = .cboMedicare.Column(2)
.txtMedicareCode = .cboMedicare.Column(1)
.txtMedicareCode.Requery
.cboLocation.Requery
' .cboLocation = .cbolocation.ItemData(0)
' .cboLocation = .cboLocation.Column(0)
.cboLocation = .cboLocation.Column(0, 0)
.txtLocationDesc = .cboLocation.Column(1, 0)
End With
I am not able to get the cboLocation to show the first row in the records
populating the combo box. As you can see, I have tried a number of
suggestions I have read on this site, but to no avail. Would someone have an
answer to this issue. It would be greatly appreciated. I have tried for
several nights to get this working.
Regards,
CharlesD
I have a form that contains two combo boxes. One is cboMedicare for Medicare
codes and the other cboLocation that contains valid locations for the
Medicare code chosen in the combo box cboMedicare, I set the variable
..txtMedicareCode = .cboMedicare.Column(1). The cboLocation is populated
using the following SQL statement:
SELECT tblLocation.apkLOCATION, tblLocation.DESCRIPTION,
tblMedicare_Business_Rules_All_Fields.SERV_CODE
FROM tblLocation INNER JOIN tblMedicare_Business_Rules_All_Fields ON
tblLocation.apkLOCATION = tblMedicare_Business_Rules_All_Fields.apkLOCATION
WHERE
(((tblMedicare_Business_Rules_All_Fields.SERV_CODE)=[Forms]![frmDailyBillings]![txtMedicareCode]))
ORDER BY tblLocation.apkLOCATION;
Everything works well, but I cannot seem to get the combo box for
cboLocation to show the first record in the query results. When you use the
down arrow on the cboLocation the combo box has the proper locations for the
medicare code, I am able to have a text field show the
tblLocation.DESCRIPTION from the SQL query, by using the code:
With Me
.mservice = .cboMedicare.Column(2)
.txtMedicareCode = .cboMedicare.Column(1)
.txtMedicareCode.Requery
.cboLocation.Requery
' .cboLocation = .cbolocation.ItemData(0)
' .cboLocation = .cboLocation.Column(0)
.cboLocation = .cboLocation.Column(0, 0)
.txtLocationDesc = .cboLocation.Column(1, 0)
End With
I am not able to get the cboLocation to show the first row in the records
populating the combo box. As you can see, I have tried a number of
suggestions I have read on this site, but to no avail. Would someone have an
answer to this issue. It would be greatly appreciated. I have tried for
several nights to get this working.
Regards,
CharlesD