Search results

  1. C

    how to know which command button is clicked

    i don't know is it my module is class or not. i don't understand Definitely put the code in the entry form's module i put the wrong place? i put =CalendarFor([...]."") next to on click of the cmdbtn to active module. the module start with Option Compare Database Option Explicit i have to...
  2. C

    how to know which command button is clicked

    thanks, i tried With Forms!sentry If .ActiveControl.Name = .Command138.Name Then End If End With and If Forms("sentry").ActiveControl.Name = Forms("sentry").Command138.Name Thenbut both blocked the program, so i have to turn off my computer. there is a msg "you can't exit microsoft...
  3. C

    how to know which command button is clicked

    it is the codes in a module, i want to move frmCalendar in its procedure with lL, lT so that frmCalendar is around the clicked calendar button command138 or cmdcaldate. so i want to defined lL, lT according which button is clicked. ... Public gtxtCalTarget As TextBox 'Text box to return the...
  4. C

    how to know which command button is clicked

    thank you where should i put the declare variables? i put it in the module under Public Function CalendarFor(....) with: Dim MyForm As String MyForm = "entry" DoCmd.OpenForm MyForm and run, the same msg "...variable not defined"
  5. C

    how to know which command button is clicked

    thank you for your help the code is not the entry form, it is in a module. i try the following code: If Forms("entry").ActiveControl.Name = Command138.Name Then and run, command138 is highlight and a message pop up "compile error variable not defined". i do not know where is the problem?
  6. C

    how to know which command button is clicked

    hi, i have two command buttons for active calendar, i want to put the calendar beside the clicked command button in the form named entry. how can i know which button is clicked? i try the following code to identify if the command button command138 is clicked, does this way is right? Dim c As...
Back
Top Bottom