Drop Down showing incorrect format

mtagliaferri

Registered User.
Local time
Today, 18:02
Joined
Jul 16, 2006
Messages
550
I have a datasheet form with a drop down list records are displayed with a dash after the first letter, suddenly for all new entries the dash does not show (Pic1). In the table they are displayed correctly.
Would I need to impose the format type as "L-LLLL" on the source in the source in the query (Pic2)
 

Attachments

  • Pic 01.jpg
    Pic 01.jpg
    37 KB · Views: 92
  • Pic 02.jpg
    Pic 02.jpg
    33 KB · Views: 85
Use update query to add the dash:

Update tblfleet set dacregistration=left(dacregistration,1) & "-" & mid(dacregistration,2) where instr(dacregistration, "-")=0;
 
Confused:banghead:

Where Do I place
Code:
dacregistration=left(dacregistration,1) & "-" & mid(dacregistration,2) where instr(dacregistration, "-")=0;

And why old entries are showed correctly and suddently the new ones are not?
 
Arnel is telling you to create an update query with that as the query sql.

However, if you are saying that the data is displayed correctly in the table, then whether that works will depend on whether the data is already stored like that in the table or if you've used field formatting to obtain that layout,

If the update query doesn't work, check the field formatting in both table and combo box
 
yes the format is correct in the table which has an input mask, I have other form displaying record from the table and are shown correctly, there is no format set on the drop down box.
How can it be that only the last few entries are incorrectly displayed?
 

Attachments

  • 1.JPG
    1.JPG
    9.3 KB · Views: 85
  • 2.JPG
    2.JPG
    20.3 KB · Views: 68
  • 3.JPG
    3.JPG
    43 KB · Views: 68
Impossible to say why from the info you have provided.
Have you run the update query?
Have you tried adding a suitable format to the combo?
 
The input mask is not set to save the punctuation. Suspect the mask has been changed. Old entries have been saved with the hyphen and new entries have not.

If the mask is set in the table, data will show with hyphen. However, combobox list shows the actual data.

Is there ever another prefix than G-?
 
Last edited:

Users who are viewing this thread

Back
Top Bottom