Search results

  1. arnelgp

    Setting Recordsource when there are two or more forms open

    just test if frmActivitiesEdit is open:\ If CurrentProject.AllForms("frmActivitiesEdit").IsLoaded = False Then DoCmd.OpenForm "frmActivitiesEdit" End If Forms!frmActivitiesEdit.RecordSource = "Select * from qryActivitiesEdit Where ActionID = " & Me.txtActionID
  2. arnelgp

    Solved Display Image Conditionally

    use your Control not the fields in your table: Private Sub GroupHeader1_Format(Cancel As Integer, FormatCount As Integer) Me.Lvl1Img.Visible = Me.Lvl1Chk Me.Lvl2Img.Visible = Me.Lvl2Chk Me.Lvl3Img.Visible = Me.Lvl3Chk End Sub
  3. arnelgp

    SUBFORM CONTROLS

    you may try this on the subform's Current Event: Private Sub Form_Current() Dim bolVisible As Boolean With Me bolVisible = (.Recordset.RecordCount > 1) !FirstRecord.Visible = bolVisible !NextRecord.Visible = bolVisible !PrevousRecord.Visible = bolVisible !LastRecord.Visible...
  4. arnelgp

    The_Doc_Man has become upgraded to Super Moderator

    don't forget the blowout..
  5. arnelgp

    Ban's for doxing (or similar)

    means a woman/girl/transgender. maybe attributed by Elvis Costello: She may be the face I can't forget A trace of pleasure or regret May be my treasure or the price I have to pay She may be the song that summer sings May be the chill that autumn brings May be a hundred different things Within...
  6. arnelgp

    Solved HELP WITH VBA ON SUBFORM

    then you already have Duplicate JR_ID on JR_TrClassesT table. what the code is doing is adding (if it does not already exists on JR_TrClassesT) the 12 records you are looking for. next it uses an INNER JOIN (meaning only those 12 JR_ID should be included). but you said more than 12 are being...
  7. arnelgp

    Ban's for doxing (or similar)

    who is mr.B? i hope not the Mr.B with the Teddy bear.
  8. arnelgp

    The_Doc_Man has become upgraded to Super Moderator

    will that mean we will see more of the "when i was in the navy.." thing? :LOL:
  9. arnelgp

    Solved HELP WITH VBA ON SUBFORM

    modify your code like this: Private Sub TrnType_AfterUpdate() Dim strSQL As String, frm As Form, subfrm As Form 'insert records to JR_TrClassesT table strSQL = "INSERT INTO JR_TrClassesT (JR_ID, TrnCnt) " & _ "SELECT Personnel.AFD_ID, 0 FROM Personnel " & _...
  10. arnelgp

    Another demo of JSON Recordset (mimic the behavior of DAO.Recordset)

    here's what AI has to say: No, JSON is not unstructured data; it is considered semi-structured data because it has an internal organizing principle (key-value pairs) but lacks the rigid, pre-defined schema of a traditional relational database. It is more organized than unstructured data, which...
  11. arnelgp

    Uncle Gizmo has also left the building

    Bye-bye Uncle G! "hope you have a lot of good friends out there.."
  12. arnelgp

    Another demo of JSON Recordset (mimic the behavior of DAO.Recordset)

    the Ai keeps generating test code (for export to json) on employee table which i dont have, so i just copy xompany table and rename the copy as employee. New_employee table is created from test code to import back from a json string to New table, which I provide as new_Employees.
  13. arnelgp

    Solved Update recordset skipping the last record

    Me.Dirty = False, means to save all your changes to the db.
  14. arnelgp

    Solved Update recordset skipping the last record

    it you need to save the last chckbox, do this On Top of your code: Me.Dirty = False ' your code below
  15. arnelgp

    Import table to XML and export XML to table.

    another AI brilliance. create an xml Recordset-like class. see module TestModule for various test.
  16. arnelgp

    Another demo of JSON Recordset (mimic the behavior of DAO.Recordset)

    again, I asked AI to generate a json recordset class, that you can Apply Filter and Change Value just as you can with a normal recordset. this will become very handy if you have a consistent, single table, json file and you want the ability to show it in the form and perform Edit and Filter to...
  17. arnelgp

    Solved Afterupdate with no update.

    I think when you change something in the combo and press Enter key, the Default behavior is to stay on the combo. unlike in the Textbox, when you press Enter key, you go to next Textbox/record.
  18. arnelgp

    Solved Update recordset skipping the last record

    you are Opening tmpCableTable and at the same time Updating The Same tmpCableTable using an Update Query. Can you not just Loop through this recordset and update it, since you said it is already Filtered correctly?
  19. arnelgp

    Importing simple or complex json string to a Table or related Tables (by AI)

    The code generated by our friendly AI. on the Module there are two test subs, one will create (or append to existing) table data from json string. while the other will create 3 related tables. if you see any error you can ask AI for code improvement by pasting the code to it.
  20. arnelgp

    Solved Query to find users not currently assigned to equipment

    No it will not happen, return a Null value. The subquery will return a Value or No record at all, but not Null value. Unless the OP has Null values on UserID field.
Back
Top Bottom