M
Mr. Smith
Hi.
I think this is simple, but still I cant figure out the best way.
I have a main_form which opens as default form in my Access application. The
key element in the form is a combo box listing clients (cboClients). The
user selects a client from the list, and all values in the form updates
based on the selected client.
Also I have a second form which shows our top 20 clients in a listbox
(cboTop20).
What I want:
When the user doubble click on a top 20 client, I want the client id to be
passed on to the main_form, and the main_form to be updated based on the
cboTop20 id.
In my "perfect" VBA world this would work (consider it as pseudo code):
Private sub cboTop20_onDoubble_Click()
main_form.Form.load(cboTop20)
End Sub
Private sub main_form load(i as integer)
If i not vbNothing then
cboClients = i
main_form .requery
end if
End sub
I do hope some of you understands my issue and can give me a hint or a
resource where I can dig this out.
Regards
Mr. Smith
I think this is simple, but still I cant figure out the best way.
I have a main_form which opens as default form in my Access application. The
key element in the form is a combo box listing clients (cboClients). The
user selects a client from the list, and all values in the form updates
based on the selected client.
Also I have a second form which shows our top 20 clients in a listbox
(cboTop20).
What I want:
When the user doubble click on a top 20 client, I want the client id to be
passed on to the main_form, and the main_form to be updated based on the
cboTop20 id.
In my "perfect" VBA world this would work (consider it as pseudo code):
Private sub cboTop20_onDoubble_Click()
main_form.Form.load(cboTop20)
End Sub
Private sub main_form load(i as integer)
If i not vbNothing then
cboClients = i
main_form .requery
end if
End sub
I do hope some of you understands my issue and can give me a hint or a
resource where I can dig this out.
Regards
Mr. Smith