Access2 time formatting

S

Stephen

Has anyone encountered this scenario before
I have a short time format hh:mm, 24hr, field in a table
I use a query to pull this data into a combox box
When I bind a text box to the combo box the time is formatting itself hh:mm:ss and all are tagged with PM, regardless of time
I have tried formatting in code and in properties and it's just not doing affecting it
I can't understand why it is applying this formatting to this field
Can anyone advise
 
M

Marshall Barton

Stephen said:
Has anyone encountered this scenario before.
I have a short time format hh:mm, 24hr, field in a table.
I use a query to pull this data into a combox box.
When I bind a text box to the combo box the time is formatting itself hh:mm:ss and all are tagged with PM, regardless of time.
I have tried formatting in code and in properties and it's just not doing affecting it.
I can't understand why it is applying this formatting to this field.

What do you mean by "bind a text box to the combo box"?

Actually, this sounds like the combo box is returning a
string and not a date/time value. Try converting the value
to a date/time in the text box:

=CDate(combo)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top