Just like John I've been trying to follow what you are doing. A few
points:
1: The DLookup on your report is wrong. It needs a WHERE clause.
2: You want a blank row in your combobox. I am assuming you don't have
that yet because in a good db design OverdueRemarks is a required
field so cannot be null. You can add a blank row by using a UNION
statement with another table that has just a single blank record:
SELECT OverdueRemarks
FROM tblOverdueRemarks
UNION
Select SomeField
From SomeTable
I often use a bit more elaborate SomeTable where I have a blank row,
but perhaps also one with dashes or "--Select your Remark--" or other
entries. I can pick up the row I want with a where-clause (...where
SomeFieldID = 5).
3: Not sure why you're not working with ID values; a typical dropdown
is bound to a 2-column query with RemarkID, Remark, and the first
column is the bound column and it is hidden. The values are saved to
an RemarkID field in your main table (the one bound to the main form
that the combobox is on).
4: We could leave the conditional formatting out of this for now;
that's just eye candy we can add when everything else works properly.
-Tom.
My Combo Box has a row source from this query
SELECT tblOverdueRemarks.OverdueRemarks
FROM tblOverdueRemarks;
My Combo box controls a text box on my Report :
=DLookUp("OverdueRemarks","tblOverdueRemarks")
Another form adds Remarks into the tblOverdueRemarks
but I am wanting to get a blank row in my combo so I have the option not to
Print any Remark
I have an Format Conditional Formatting : Expression Is : Not
IsNull([OverdueRemarks]) (Orange Colour)
Basically I'm wanting a blank row in my Combo so as I don't have to print
anything and conational Formatting will be normal
Thanks for the help........Bob