Recent content by arnelgp

  1. arnelgp

    Multiple sub form problem

    here is also a simple demo and may not reflect with the record on your database. open MainForm and select from the combobox. //Edit: I change the code to always show the 16 subform.
  2. arnelgp

    Modern Calendar on Old Webbrowser control

    the original database (which is Edge-based webbrowser) can be found here: https://www.access-programmers.co.uk/forums/threads/calendar-that-works-in-the-edge-browser.335252/ the code is not mine and attribution goes to Mr.Doozer of the above thread. also the New code for old IE-webbrowser...
  3. arnelgp

    Adding badges over the Access taskbar icon

    this a job for super AI.
  4. arnelgp

    Query problem using "last"

    that is the catch, c&r, purge deleted records and reset the table, so Last() will not be reliable. it also resets all queries execution plan, i think. but i don't always use c&r, it might do harm than good, specially if power interruption occurs.
  5. arnelgp

    Query problem using "last"

    i don't know why are comparing excel against access. just prove that Last("FieldName") is not returning the "Last saved New record". you can also create a query from the table, sort it Asc or Desc (if you want). then on vba->immediate window: ?DLast("FieldName", "YourQuery")
  6. arnelgp

    Query problem using "last"

    just tested it both, in Excel VBA and Access VBA: format(cdate(0),"mm/dd/yyyy") they both return: 12/30/1899
  7. arnelgp

    Query problem using "last"

    that is way off this topic.
  8. arnelgp

    Query problem using "last"

    if you acquire something, say a house, or a car, i am sure you get the "house plan" or the car manual. it include the technical manuals. you don't acquire and update (as ms does with mso) it blindly. i am sure you have those "field manuals", "parts manual" "tech manuals" while you are on the navy.
  9. arnelgp

    Query problem using "last"

    test it first. add a record one by one. Create a query that uses Last("yourFieldName") against your table and save the query (qryLast). run the query and note the result. edit any record (not the record qryLast has shown). then run/refresh the query and you will get same result. do any edits on...
  10. arnelgp

    Query problem using "last"

    For the sake of argument, supposed your table does not have autonumber field or any numeric field. what you have is FirstName and LastName (all short text) fields only. How then will you know which is the Last record entered without using Last() in SQL? Last() would have been stripped by MS if...
  11. arnelgp

    Solved findfirst with a variable for the field name and "Like" and a variable in the criteria.

    or something lik this: If Val(sStr) > 0 Then rs.FindFirst sField & "= " & sStr 'This works with a numeric input Else rs.FindFirst sField & "= '" & sStr & "'" 'This works if the input is the same as the field value. sStr = "'*" & sStr & "*'" If...
  12. arnelgp

    Calendar that works in the Edge browser.

    the Best so far.
  13. arnelgp

    Query problem using "last"

    Last() will return the Last record you added, While Max() will return the Biggest value in a Field. suggest you add a TimeStamp field to your table that whenever you Add New, this field is Updated to the current Date/Time. then you will only need to Lookup the Max() of this field to retrieve the...
  14. arnelgp

    Puzzle: Access Message Boxes with no VBA code

    i think the new msgbox coloring/bolding can only be done on form events directly "Expression" on the Event of the form. like in the case of your Current Event and On Close event: =Msgbox() that way Access will Evaluate the expression, same as using Eval("Msgbox()") you can't produce it using...
  15. arnelgp

    Puzzle: Access Message Boxes with no VBA code

    you are using 4-5 arguments (parameters) of the msgbox (modern look) + the @ sign. while on the normal msgbox, you only use 3.
Back
Top Bottom