Your complicating things for yourself. Why not just have a field for miles and one for hours? ... fast simple and easy on the logic.
If you must, then you to need a way to tell the difference (what your asking for). Best I can think of is to postfix a character like [blue]100m[/blue] or [blue]12h[/blue]. But this turns the field from numeric to string ... not a good idea if your summing.
[blue]Your Thoughts? . . .[/blue]
See Ya! . . . . . .
Be sure to see thread181-473997 [blue]Worthy Reading![/blue]
Also faq181-2886 [blue]Worthy Reading![/blue]
Probably need to provide more information. It may be two fields: value and units. Value field holds a numeric value, and the units field holds the type of units: "Hours", "Miles"
(the actual field names would be different since value is a reserved word.)
Yes there are 2 fields, one holding the numeric value and the other being the unit of measure, hours or miles. So text entered into the unit of measure would need to be an exact match of either hours or miles or it's not accepted. I suppose a radio button could be used but I'd like to explore this avenue first
AceMan1
Due to the arrangement of the my tables, I would need major reconstruction. Although that is a great idea, and simple.
You mentioned..... Best I can think of is to postfix a character like 100m or 12h. But this turns the field from numeric to string ... not a good idea if your summing.
This field is a text field (hours or miles) so there will be no summing.
This would have absolutely nothing to do with your tables. Just change the textbox to a combobox and set the rowsource to Miles;Hours and call it a day.
OK, I changed to a combo box. The properties note row source type = Table/Query. Row source was empty so I changed it to read miles;hours. I get an error noting that the record source does not exist. I must be missing something.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.