I have a form (frmIntelInfo) that has a combo box that I want to populate with data from a table (tblAKA) that is filtered by the text in a textbox (txtID) that is on the form. The combo box does not populate with anything. I have the properties for the combo box to populate via the query:
SELECT tblAKA.ID, tblAKA.AKA
FROM tblAKA
WHERE tblAKA.ID=[Forms]![frmIntelInfo]![txtID]
ORDER BY tblAKA.AKA;
It seems like the query is not working properly but I am not sure why??? Here is what I tried....I put a break point in the "on open" event of the form and in the immediate window I looked at the contents of the text box and it was populated with the ID??? I also checked in the immediate window what the contents of the expression, [Forms]![frmIntelInfo]![txtID] and it too printed the proper ID...
Are you stumped yet?
Thanks for the assistance.
SELECT tblAKA.ID, tblAKA.AKA
FROM tblAKA
WHERE tblAKA.ID=[Forms]![frmIntelInfo]![txtID]
ORDER BY tblAKA.AKA;
It seems like the query is not working properly but I am not sure why??? Here is what I tried....I put a break point in the "on open" event of the form and in the immediate window I looked at the contents of the text box and it was populated with the ID??? I also checked in the immediate window what the contents of the expression, [Forms]![frmIntelInfo]![txtID] and it too printed the proper ID...
Are you stumped yet?
Thanks for the assistance.