Solved Set default value in multi column combo box? (1 Viewer)

Mike Krailo

Well-known member
Local time
Today, 00:34
Joined
Mar 28, 2020
Messages
1,044
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?
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 21:34
Joined
Oct 29, 2018
Messages
21,467
Hi Mike. Take a look at this other thread.
 

Mike Krailo

Well-known member
Local time
Today, 00:34
Joined
Mar 28, 2020
Messages
1,044
Thanks DBguy for pointing me to that thread. I'm playing around with those ideas now.
 

Mike Krailo

Well-known member
Local time
Today, 00:34
Joined
Mar 28, 2020
Messages
1,044
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
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 12:34
Joined
May 7, 2009
Messages
19,233
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

  • CueingContinuousForm.zip
    271.9 KB · Views: 151
Last edited:

Mike Krailo

Well-known member
Local time
Today, 00:34
Joined
Mar 28, 2020
Messages
1,044
This looks like what I was searching for Arnel. Thank you once again.
 

Mike Krailo

Well-known member
Local time
Today, 00:34
Joined
Mar 28, 2020
Messages
1,044
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

Top Bottom