Belimisimus
Registered User.
- Local time
- Today, 21:38
- Joined
- Mar 30, 2010
- Messages
- 11
Hello to everyone,
hope that someone can help me to find a solution for my problem.
I have simple database with one table (TaskID, Task name) and two forms. In first form (Task1) I add on load event code:
And in second form (Task2) I add on "Task name" field dbl click event code:
So if I dbl click task name in second form, this task should be open in the first form. But it doesn't.
If I disable code in first form everything is working fine.
Obviously something is missing and I can't figure what is it.
hope that someone can help me to find a solution for my problem.
I have simple database with one table (TaskID, Task name) and two forms. In first form (Task1) I add on load event code:
Code:
Private Sub Form_Load()
Form.RecordSource = "SELECT Tasks.* FROM Tasks;"
End Sub
And in second form (Task2) I add on "Task name" field dbl click event code:
Code:
Private Sub Task_Name_DblClick(Cancel As Integer)
DoCmd.OpenForm "Tasks1", , , "TaskID = " & Me.TaskID, , acDialog
End Sub
So if I dbl click task name in second form, this task should be open in the first form. But it doesn't.
If I disable code in first form everything is working fine.
Obviously something is missing and I can't figure what is it.