efiftythree
IS-IT--Management
Im working on a database to track information about our phone switch. I have a form for adding a new phone/device and on that form there are currently three combo boxes that are built based on information in the other combo boxes.
They are cboEqlist, cboLenlist, and cboExttrunk.
cboEqlist determines what goes into cboLenlist and I also need it to determine what goes into cboExttrunk. Problem is that extensions and trunks are in two different tables. So I need to have cboExttrunk choose from two different SQL commands depending on whats in cboEqlist.
Options for cboEqlist = ATTCON, DTERM, DID, TRUNK, SLT, OPX
If cboEqlist = TRUNK then cboExttrunk =
SELECT tblTrunks.ID, tblTrunks.trunk, tblTrunks.inuse FROM tblTrunks WHERE (((tblTrunks.inuse)=0)) ORDER BY tblTrunks.trunk;
ANYTHING ELSE =
SELECT tblExt.ID, tblExt.ext, tblExt.inuse FROM tblExt WHERE (((tblExt.inuse)=0)) ORDER BY tblExt.ext;
Thanks for taking the time to read my post!
They are cboEqlist, cboLenlist, and cboExttrunk.
cboEqlist determines what goes into cboLenlist and I also need it to determine what goes into cboExttrunk. Problem is that extensions and trunks are in two different tables. So I need to have cboExttrunk choose from two different SQL commands depending on whats in cboEqlist.
Options for cboEqlist = ATTCON, DTERM, DID, TRUNK, SLT, OPX
If cboEqlist = TRUNK then cboExttrunk =
SELECT tblTrunks.ID, tblTrunks.trunk, tblTrunks.inuse FROM tblTrunks WHERE (((tblTrunks.inuse)=0)) ORDER BY tblTrunks.trunk;
ANYTHING ELSE =
SELECT tblExt.ID, tblExt.ext, tblExt.inuse FROM tblExt WHERE (((tblExt.inuse)=0)) ORDER BY tblExt.ext;
Thanks for taking the time to read my post!