Solved Set default value in multi column combo box?

Mike Krailo

Well-known member
Local time
Today, 08:40
Joined
Mar 28, 2020
Messages
1,681
I have been trying to figure out how to set a default value temporarily in a combo box that is not actually listed in the row source. The idea is to show something like <Enter Vendor> inside the combo box when it is just a Null value (when form loads). This is possible with Format Null in the properties if the bound column is not numeric, but in my case the bound column is a FK that goes to the vendor table so it doesn't seem to work.

This doesn't work if set in the properties for Format of the combo box.
Code:
@;"<Enter Vendor>"

Is there another way to do this?
 
Hi Mike. Take a look at this other thread.
 
Thanks DBguy for pointing me to that thread. I'm playing around with those ideas now.
 
I went through that thread and it appears that i left out one very important detail. How do you get this to work in a continuous form?
1600917068804.png
 
you can use Conditional Format.
on the demo there are 3 Dummy Textbox below each textbox/combobox.
Conditional Formats are applied to these dummy textbox to set their forecolor to White.
(note I remove the Alternate Color of the detail section, to make this work).
 

Attachments

Last edited:
This looks like what I was searching for Arnel. Thank you once again.
 
Arnel, I tried to implement this this morning and I have no idea what formatting you actually used to do this. It's not apparent from looking at the sample database. I cannot get the AaBbCcYyZz to go away as shown in the picture and like it shows in your demo.
1600955144970.png


UPATE: Nevermind, I figured it out. The dummy text box is actually behind the combo box or the bound text boxes on the form. The formatting is set to white background and white text. The bound text boxes and combo box have the background set to transparent.
 
Last edited:

Users who are viewing this thread

Back
Top Bottom