Search results

  1. Z

    From number of days to Years, months and days DATEDIFF madness!!

    I understand your point, but the 3675 is actually not days between dates but rather accumulated "extra days" according to a few functions between two dates. The two dates are used for elapsed time just as you suggest, but the accumulated extra days are not anchored to any real date. So.. To...
  2. Z

    From number of days to Years, months and days DATEDIFF madness!!

    thanks but i think this is a "little" overkill :) I'm going with this.. A1 = 3775 Year =INT(A1/365) = 10 Month = =INT(MOD(A1,365)/30) = 4 Days =MOD(MOD(A1,365),30) = 5 test: 10*365+4*30+5 = 3775
  3. Z

    From number of days to Years, months and days DATEDIFF madness!!

    .....help.... 3675 days / 30.416 = 120.8246 months that's 10 full years and 0 months and 0.8246 days then to get the 0.8246 x 30.416 is 25.08 rounded down to 25 days my brain is starting to melt slightly...how do I get the months and then all into a formula....?
  4. Z

    From number of days to Years, months and days DATEDIFF madness!!

    now im trying to get the years months and days separated..hmmm any suggestion how to do that.. years is pretty simple I can round that to whole numbers but months/days is trickier...
  5. Z

    From number of days to Years, months and days DATEDIFF madness!!

    plog my mistake, I just want to print out the number I have in days displayed as years months and days with no connection to real date. below I tried something... My simple solution or kinda solution... I have to divide 365 with 12, use the 30.416 result, and then the remaining number...
  6. Z

    From number of days to Years, months and days DATEDIFF madness!!

    Hi Plog, Well i actually dont care about 1910. An the solution I used found in several places... I just have a number of days that I want to be covered into y, m and d...so I guess ill have to divide 365 with 12, use the 30.41 result, and then the remaining number convert that into days...
  7. Z

    From number of days to Years, months and days DATEDIFF madness!!

    Hi Everybody, I have this great little sheet doing some calculations with VBA and excel formulas. All is well until I decided to convert the resulting days into yers months and days.. =DATEDIF(0,3675,"y") & " years, " & DATEDIF(0,3675,"ym")&" months, " & DATEDIF(0,3675,"md")&" days" And the...
  8. Z

    ****************

    ****************
  9. Z

    Combobox & VBA & selected item

    I actually did just that, made a function and the only thing the afterupdate of the combo does was calling that function. But because I was using a value in a hidden column of the combo to set the right selected item. I needed the combo box's event to trigger and update it self and so on... Hope...
  10. Z

    Combobox & VBA & selected item

    For my own sanity can you explain the syntax for calling the combos afterUpdate event.. i tested so many combinations and im pretty sure i tested the one that is working in your example and i got something like method or object not bla bla... thx Again
  11. Z

    Combobox & VBA & selected item

    im not sure this is appropriate....but....i love you :D !!!!! works like a charm now!
  12. Z

    Combobox & VBA & selected item

    Im getting promped "cant find project or library" when i click the add button in the popup, im using access 2010...and the date field in the popup comes up with #name?
  13. Z

    Combobox & VBA & selected item

    attaching a simplified DB just the two forms... first form opens, click add new request, enter a name, click add, the popup is closed and the new request is in the combobox. i would like it to be selected after the small popup closes, and that the afterUpdate event is triggered just as if you...
  14. Z

    Combobox & VBA & selected item

    i tested, and i could make public functions in the form an call it from another form but making the combos sub public gave me an error runtome error 2465 Application-defined or object-defined errorstill testing
  15. Z

    Combobox & VBA & selected item

    I want to trigger the combo_afterUpdate event from a small popup form. Basically im adding a name in the popup that later goes in the combobox as an item. So when i click an add button in the popup it adds an item in the combo(adds to the table the combos record source) and selects it and fires...
  16. Z

    Combobox & VBA & selected item

    i tried calling the combo_afterupdate event...but it doesnt seem to work if its called from another form. I saw that solution in another forum and tried it..
  17. Z

    Combobox & VBA & selected item

    ok i think i understand your example. So from the small form after i have added the item to the "Table" i make a query for the "ID" of the item that matches the value for the bound column i jys added and then set it as you mention. great, i will try and post back. One thing though...will this...
  18. Z

    Combobox & VBA & selected item

    Hi Guys, Ive done a lot of searching and not quite got the answer im looking for... Ive got a form with a combobox thats empty (to start with) bound to a query. then i have a button on the form opening a small form for adding an item in the combobox. All works fine apart from something...
  19. Z

    Question How to restrict End User activity

    Check this sample DB i made with the properties form integrated. It starts up with most things off you can change the appearance in the properties form all kudos goes to speakers_86
  20. Z

    Question How to restrict End User activity

    As i have learned the hard way if you want secure secure you have to use MySQL backend with Access front end but if pseudo secure application is enough for you..as in it looks secure and you need a little Access knowledge to get in... read this post and you can hide the back DB window and...
Top Bottom