Search results

  1. T

    Solved А problem with VBA Editor

    Thanks, zeroaccess. It is done
  2. T

    Solved А problem with VBA Editor

    So as not to post a new topic if I may ask something more. I have formA that have cboA with names of people and search button to filter the names (people) and their activities. So when I try to add new activite with comand button DoCmd.OpenForm "formB", , , , acFormAdd and save it with that code...
  3. T

    Solved А problem with VBA Editor

    On the Main form I had timer. I removed it and now VBA Editor working great. Thanks all.
  4. T

    Solved А problem with VBA Editor

    I have some problem with VBA Editor. When I try to use spacebar it does not allow me to move it forward and the beginning of the code turns red. What could be the problem
  5. T

    Solved Combobox special value

    Тhank you for the advice. It is done.
  6. T

    Solved Combobox special value

    I want to make 3 accde files on my database for 3 people. In my database I have a form with combobox with 3 names (name1, name2, name3) of that people to make their reports. So I want when the name1 open his accde file, in that form with combobox to see In that combobox only his name (name1) to...
  7. T

    How to Set Temporary Value

    In this case I get Run-time error 32538
  8. T

    How to Set Temporary Value

    The code finally works! TempVars("temVarLControl") = LControlsID.Value DoCmd.OpenForm "Form_hm", , , "[LControlsID]=" & Me.LControlsID Thanks, Gasman
  9. T

    How to Set Temporary Value

    Yes, I need the same result as in cmdMB and Form_mb When I add this code on my Access 2019: it shows my Run time error: 32538: TemVar can only stor data :banghead:
  10. T

    How to Set Temporary Value

    What should the code look like on click on the button cmdHM? I'm trying with this, but nothing Dim tvLControlsID As TempVars Me.LControlsID = TempVars!tvLControlsID DoCmd.OpenForm "Form_hm" On the form "Form_hm" in the field LControlsID I set Default Value =[TempVars]![tvLControlsID]
  11. T

    How to Set Temporary Value

    Is there a way when I press the button cmdHM to open the form "Form_hm" to the same LControlsID as on the form "subformNonStandard" and to add in the form "Form_hm"?
  12. T

    How to Set Temporary Value

    Oh, sorry. Here is the DB in Access 2002 - 2003 Database
  13. T

    How to Set Temporary Value

    The db is created on Access 2019. OK, not a problem. :) Thanks anyway for your time. Maybe someone else will help with my problem.
  14. T

    How to Set Temporary Value

    Would you try now? I replaced it
  15. T

    How to Set Temporary Value

    Here is my database. I put two buttons on the form"subformNonStandard" cmdHm and cmdMB. When I click on the cmdMB I have Macro to open form "Form_mb" to specific record , and it opens the form "Form_mb" correct. When I try to open the form "Form_hm" by click on the button cmdHm with this code...
  16. T

    How to Set Temporary Value

    It turned out to be quite confusing with all these explanations. I'll upload db
  17. T

    How to Set Temporary Value

    No, it is not a control. LaboratoryID on the second form is set by Form_Load() DoCmd.GoToRecord , , acNewRec.
  18. T

    How to Set Temporary Value

    I can't fix the problem the code: DoCmd.OpenForm "sub_Indicators", , , "[LaboratoryID] = " & Me.LaboratoryID In Immediate windows show me this error: Compile error: Variable not yet created in this context. Аny ideas for the reason?
  19. T

    How to Set Temporary Value

    No, it is not. Have I set to open as Add?
  20. T

    How to Set Temporary Value

    I have tried with DoCmd.OpenForm "sub_Indicators", , , "[LaboratoryID] = " & Me.LaboratoryID, but when the form is open LaboratoryID is set to "0". I wonder why in the loaded form "sub_Indicators" Property sheet - Filter [LaboratoryID]= 652 (this is the correct number in first form), but on...
Back
Top Bottom