PC Review


Reply
Thread Tools Rate Thread

Dates are not displayed in ComboBox

 
 
ryguy7272
Guest
Posts: n/a
 
      9th Feb 2010
I have a From ComboBox and a To ComboBox on a Form; cboFrom and cboTo. The
Row Source is this:
SELECT DISTINCT SharePrices.DateTime FROM SharePrices ORDER BY
SharePrices.DateTime;

The SQL is this:
SELECT DISTINCT SharePrices.DateTime
FROM SharePrices
ORDER BY SharePrices.DateTime;

Nothing is showing in either ComboBox; all I see is a whole bunch of blanks.
I just did this in another form in another Access database. I can’t figure
out why it’s not working for me now. I’m using Access 2007.

I’d sincerely appreciate any insight with this.

Thanks!
Ryan


--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.
 
Reply With Quote
 
 
 
 
Paolo
Guest
Posts: n/a
 
      9th Feb 2010
Hi ryguy7272,

in the properties of your combos check the column count that must be at
least 1 and the column widths that must be <>0.

HTH Paolo

"ryguy7272" wrote:

> I have a From ComboBox and a To ComboBox on a Form; cboFrom and cboTo. The
> Row Source is this:
> SELECT DISTINCT SharePrices.DateTime FROM SharePrices ORDER BY
> SharePrices.DateTime;
>
> The SQL is this:
> SELECT DISTINCT SharePrices.DateTime
> FROM SharePrices
> ORDER BY SharePrices.DateTime;
>
> Nothing is showing in either ComboBox; all I see is a whole bunch of blanks.
> I just did this in another form in another Access database. I can’t figure
> out why it’s not working for me now. I’m using Access 2007.
>
> I’d sincerely appreciate any insight with this.
>
> Thanks!
> Ryan
>
>
> --
> Ryan---
> If this information was helpful, please indicate this by clicking ''Yes''.

 
Reply With Quote
 
ryguy7272
Guest
Posts: n/a
 
      9th Feb 2010
Ah! That was it! My Column Count was set ti 1, which was fine, but my
Column Widths were 0";1", which was not right. I changed Column Widths to
1", and it works fine now. Thanks so much!!
Ryan--

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Paolo" wrote:

> Hi ryguy7272,
>
> in the properties of your combos check the column count that must be at
> least 1 and the column widths that must be <>0.
>
> HTH Paolo
>
> "ryguy7272" wrote:
>
> > I have a From ComboBox and a To ComboBox on a Form; cboFrom and cboTo. The
> > Row Source is this:
> > SELECT DISTINCT SharePrices.DateTime FROM SharePrices ORDER BY
> > SharePrices.DateTime;
> >
> > The SQL is this:
> > SELECT DISTINCT SharePrices.DateTime
> > FROM SharePrices
> > ORDER BY SharePrices.DateTime;
> >
> > Nothing is showing in either ComboBox; all I see is a whole bunch of blanks.
> > I just did this in another form in another Access database. I can’t figure
> > out why it’s not working for me now. I’m using Access 2007.
> >
> > I’d sincerely appreciate any insight with this.
> >
> > Thanks!
> > Ryan
> >
> >
> > --
> > Ryan---
> > If this information was helpful, please indicate this by clicking ''Yes''.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get Displayed Text of a ComboBox David C. Holley Microsoft Access VBA Modules 2 3rd Jun 2010 10:45 AM
Restricting values displayed in combobox PK.10987 Microsoft Access 3 4th Jun 2008 02:22 PM
Set string variable to word displayed in a combobox Graham Whitehead Microsoft Excel Programming 1 28th Jul 2006 02:24 PM
Databound Combobox and TextBox change their displayed value whenswitching between tabs Ken Arway Microsoft C# .NET 0 19th Jul 2005 11:39 PM
ComboBox first entry text is displayed,but SelectedIndex = -1 Scott M Microsoft Dot NET Framework Forms 2 8th Aug 2003 06:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:55 AM.