Aug 23, 2002 1 #1 sabavno Programmer Joined Jul 25, 2002 Messages 381 Location CA How to get a value from a combo box to be a default when form is opening?
Aug 23, 2002 #2 jjonesal Programmer Joined May 10, 2001 Messages 277 Location US Try using the DefaultValue property of the Combo box. Say for the Combo2 control, you could set the DefaultValue property to [Combo2].[ItemData](2) This would set the inital default as the third item in the list [Combo2].[ItemData](0) would set the initial value as the first item in the list. J. Jones jjones@cybrtyme.com Upvote 0 Downvote
Try using the DefaultValue property of the Combo box. Say for the Combo2 control, you could set the DefaultValue property to [Combo2].[ItemData](2) This would set the inital default as the third item in the list [Combo2].[ItemData](0) would set the initial value as the first item in the list. J. Jones jjones@cybrtyme.com
Aug 23, 2002 #3 jebry Programmer Joined Aug 6, 2001 Messages 3,006 Location US Hi! Just set the value to the first value: YourComboBox.Value = YourComboBox.Column(0,0) The correct property may be Columns instead of Column, I never can remember. hth Jeff Bridgham bridgham@purdue.edu Upvote 0 Downvote
Hi! Just set the value to the first value: YourComboBox.Value = YourComboBox.Column(0,0) The correct property may be Columns instead of Column, I never can remember. hth Jeff Bridgham bridgham@purdue.edu