gstylianou
Registered User.
- Local time
- Today, 23:58
- Joined
- Dec 16, 2013
- Messages
- 359
Dear friends,
I have the forms “SKey” and “Key”. The first one (Skey) will be open if you run the Autoexec macro and remain open (on Hidden mode) till you close the database.
Attached of “SKey” form there are some unbounds fields which they have default values.
What I need to do:
1. Using the command button [cmdPID] I want to give value to [cboPID] as new RowSource line taking the value of the similar unbound field on “SKey” form.
2. After the above procedures I want: If you close the form (“Key” form) and re-open it again the [cboPID] to have as DefaultValue the first Row of its own list (which is the value taken before using the first procedure)
The Problem:
Using a very simple vba line code, I can give value to [cboPID] but the problem is when you close this form the [cboPID] field still without default value and is null.
What I’m trying to do, is to update a list boxes with new rows using a second form. Then after the update of the list it’s important to have default value the updated fields so to solve my problem.
Thanks in advanced and I will appreciated if anybody can help me.
I have the forms “SKey” and “Key”. The first one (Skey) will be open if you run the Autoexec macro and remain open (on Hidden mode) till you close the database.
Attached of “SKey” form there are some unbounds fields which they have default values.
What I need to do:
1. Using the command button [cmdPID] I want to give value to [cboPID] as new RowSource line taking the value of the similar unbound field on “SKey” form.
2. After the above procedures I want: If you close the form (“Key” form) and re-open it again the [cboPID] to have as DefaultValue the first Row of its own list (which is the value taken before using the first procedure)
The Problem:
Using a very simple vba line code, I can give value to [cboPID] but the problem is when you close this form the [cboPID] field still without default value and is null.
What I’m trying to do, is to update a list boxes with new rows using a second form. Then after the update of the list it’s important to have default value the updated fields so to solve my problem.
Thanks in advanced and I will appreciated if anybody can help me.