473,756 Members | 5,955 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Strange behavior in combo field data

Hi I do have a products table and products-parts table in my Access
2003 database and log all services into a form.

I do have at least the following two combo boxes on my form:

- Choose Product where as the Row Source (See properties):

SELECT tblProducts.Pro ductName, tblProducts.Pro ductName FROM
tblProducts ORDER BY ProductName;

- Choose Part where as the Row Source (See properties):

SELECT tblParts.PartNa me, tblParts.PartNa me FROM tblParts WHERE
(((tblParts.Pro ductName)=Forms !Calls.ProductN ame)) ORDER BY
tblParts.PartNa me;

After I selected Product and part they are both recorded in the table
representing the Form information.

After I go to anothER record in my form and go back to the first, the
Part combo field is empty and I choose items who dows not represent the
items belong to the choosen product. I guess because Access still has
the Part in its memory belonging to the choosen Product before.

The Table is still ok,no loss of data.

How to solve this problem, because I should also be able to change the
part, while I keep the Product, even when I just come from another
record?
Find below also the VB code of the Two combo boxes.

Private Sub cmbProductName_ AfterUpdate()
Me.Refresh
Me.cmbPartName. SetFocus
End Sub

Private Sub cmbProductName_ Enter()
Me!cmbProductNa me.Value = cmbProductName. ItemData(0)
Me!cmbProductNa me.Dropdown
End Sub

Private Sub cmbPartName_Aft erUpdate()
Me.Description. SetFocus
End Sub

Private Sub cmbPartName_Ent er()
Me!cmbPartName. Value = cmbPartName.Ite mData(0)
Me!cmbPartName. Dropdown
End Sub
Bart

Nov 15 '06 #1
8 2202
Check the control source of the two combo boxes. It sounds like the first
one is bound and the second is unbound. Or are you trying to set the default
value of the controls (and they are both supposed to be unbound)? Obviously,
there is an additional Me.Refresh in the Product AfterUpdate procedure, but
you probably have a reason for that. HTH

AA Arens wrote:
>Hi I do have a products table and products-parts table in my Access
2003 database and log all services into a form.

I do have at least the following two combo boxes on my form:

- Choose Product where as the Row Source (See properties):

SELECT tblProducts.Pro ductName, tblProducts.Pro ductName FROM
tblProducts ORDER BY ProductName;

- Choose Part where as the Row Source (See properties):

SELECT tblParts.PartNa me, tblParts.PartNa me FROM tblParts WHERE
(((tblParts.Pr oductName)=Form s!Calls.Product Name)) ORDER BY
tblParts.PartN ame;

After I selected Product and part they are both recorded in the table
representing the Form information.

After I go to anothER record in my form and go back to the first, the
Part combo field is empty and I choose items who dows not represent the
items belong to the choosen product. I guess because Access still has
the Part in its memory belonging to the choosen Product before.

The Table is still ok,no loss of data.

How to solve this problem, because I should also be able to change the
part, while I keep the Product, even when I just come from another
record?

Find below also the VB code of the Two combo boxes.

Private Sub cmbProductName_ AfterUpdate()
Me.Refresh
Me.cmbPartName. SetFocus
End Sub

Private Sub cmbProductName_ Enter()
Me!cmbProductNa me.Value = cmbProductName. ItemData(0)
Me!cmbProductNa me.Dropdown
End Sub

Private Sub cmbPartName_Aft erUpdate()
Me.Description. SetFocus
End Sub

Private Sub cmbPartName_Ent er()
Me!cmbPartName. Value = cmbPartName.Ite mData(0)
Me!cmbPartName. Dropdown
End Sub

Bart
--
Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200611/1

Nov 15 '06 #2
The default Value fields are empty.

What I discover is:

1. Value are stored in the table.

2. (at first record)
If I choose a Product via the combo, the part list is refreshed so its
combo displays parts belong to the product according to another table
which stores the product-parts combinations.

3. (to second record)
But when I go to another record (where another product is set by the
combo box) and I directly choose another part in the parts combo, it
displays the part list from the product I choosed in the former record.
So these parts does not belong to the product from the present record
since this product is different.

4. (I go back to 1st and then back again to 2nd record)
If I go back to the first record, the part is still displayd, but when
I go back to the secornd record, the field is empty, but the value it
should display is stored in the table.

5. So, I would lke to have the following sutation: The combo lists
always the value of the product they belong to, even when the product
value was set long before.

PS. About bounding: How can I see a field is properly bounded. Even
when it is bounded it might still not work.

Bart


kingston via AccessMonster.c om wrote:
Check the control source of the two combo boxes. It sounds like the first
one is bound and the second is unbound. Or are you trying to set the default
value of the controls (and they are both supposed to be unbound)? Obviously,
there is an additional Me.Refresh in the Product AfterUpdate procedure, but
you probably have a reason for that. HTH

AA Arens wrote:
Hi I do have a products table and products-parts table in my Access
2003 database and log all services into a form.

I do have at least the following two combo boxes on my form:

- Choose Product where as the Row Source (See properties):

SELECT tblProducts.Pro ductName, tblProducts.Pro ductName FROM
tblProducts ORDER BY ProductName;

- Choose Part where as the Row Source (See properties):

SELECT tblParts.PartNa me, tblParts.PartNa me FROM tblParts WHERE
(((tblParts.Pro ductName)=Forms !Calls.ProductN ame)) ORDER BY
tblParts.PartNa me;

After I selected Product and part they are both recorded in the table
representing the Form information.

After I go to anothER record in my form and go back to the first, the
Part combo field is empty and I choose items who dows not represent the
items belong to the choosen product. I guess because Access still has
the Part in its memory belonging to the choosen Product before.

The Table is still ok,no loss of data.

How to solve this problem, because I should also be able to change the
part, while I keep the Product, even when I just come from another
record?

Find below also the VB code of the Two combo boxes.

Private Sub cmbProductName_ AfterUpdate()
Me.Refresh
Me.cmbPartName. SetFocus
End Sub

Private Sub cmbProductName_ Enter()
Me!cmbProductNa me.Value = cmbProductName. ItemData(0)
Me!cmbProductNa me.Dropdown
End Sub

Private Sub cmbPartName_Aft erUpdate()
Me.Description. SetFocus
End Sub

Private Sub cmbPartName_Ent er()
Me!cmbPartName. Value = cmbPartName.Ite mData(0)
Me!cmbPartName. Dropdown
End Sub

Bart

--
Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200611/1
Nov 16 '06 #3
You have to run the code that builds the part list combo everytime there is a
different product. IOW, switching to a different record may or may not
change the product. You have to check for that and rebuild the second combo
box. Typically, this is done via the form's OnCurrent event. So, you can
add the code from your first combo box to this event, or you can make the
procedure for the first combo box Public and call it from the form's
OnCurrent event.

I no longer think that you have an unbound control. In fact, you verified
this by checking that the values were being stored in the table. You can
also look at the control's Control Source property to see if the field name
is present.

AA Arens wrote:
>The default Value fields are empty.

What I discover is:

1. Value are stored in the table.

2. (at first record)
If I choose a Product via the combo, the part list is refreshed so its
combo displays parts belong to the product according to another table
which stores the product-parts combinations.

3. (to second record)
But when I go to another record (where another product is set by the
combo box) and I directly choose another part in the parts combo, it
displays the part list from the product I choosed in the former record.
So these parts does not belong to the product from the present record
since this product is different.

4. (I go back to 1st and then back again to 2nd record)
If I go back to the first record, the part is still displayd, but when
I go back to the secornd record, the field is empty, but the value it
should display is stored in the table.

5. So, I would lke to have the following sutation: The combo lists
always the value of the product they belong to, even when the product
value was set long before.

PS. About bounding: How can I see a field is properly bounded. Even
when it is bounded it might still not work.

Bart
>Check the control source of the two combo boxes. It sounds like the first
one is bound and the second is unbound. Or are you trying to set the default
[quoted text clipped - 58 lines]
>Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200611/1
--
Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200611/1

Nov 16 '06 #4
The field name is present in the Cpontrol Source.

If I move the Me!cmbProductNa me.Value = cmbProductName. ItemData(0)
command to Current in Form then it only displays the first value in the
Product table.
Instead of that, if I remove the Refresh command in
Productname-afterupdate, then I am only able to choose the last values
from the part combo I obtained via the Row Sourse "Select.... .." (see
top)

There might be a solution when I ad a commend that reads the stored
value from the table and besed on than the 2nd combo should give the
right list.
How to read the value and where to put it?

Basically, all choosed value of Parts are stored, either from the right
part list or a false part list (list not belonging to the stored
product).
The value in the field just become blank (but still stored) in the
value does not belong to the last created list (from Select row sourse)
created from a choosen product from another reord.
Bart

On Nov 17, 1:47 am, "kingston via AccessMonster.c om" <u27511@uwe>
wrote:
You have to run the code that builds the part list combo everytime there is a
different product. IOW, switching to a different record may or may not
change the product. You have to check for that and rebuild the second combo
box. Typically, this is done via the form's OnCurrent event. So, you can
add the code from your first combo box to this event, or you can make the
procedure for the first combo box Public and call it from the form's
OnCurrent event.

I no longer think that you have an unbound control. In fact, you verified
this by checking that the values were being stored in the table. You can
also look at the control's Control Source property to see if the field name
is present.

AAArenswrote:
The default Value fields are empty.
What I discover is:
1. Value are stored in the table.
2. (at first record)
If I choose a Product via the combo, the part list is refreshed so its
combo displays parts belong to the product according to another table
which stores the product-parts combinations.
3. (to second record)
But when I go to another record (where another product is set by the
combo box) and I directly choose another part in the parts combo, it
displays the part list from the product I choosed in the former record.
So these parts does not belong to the product from the present record
since this product is different.
4. (I go back to 1st and then back again to 2nd record)
If I go back to the first record, the part is still displayd, but when
I go back to the secornd record, the field is empty, but the value it
should display is stored in the table.
5. So, I would lke to have the following sutation: The combo lists
always the value of the product they belong to, even when the product
value was set long before.
PS. About bounding: How can I see a field is properly bounded. Even
when it is bounded it might still not work.
Bart
Check the control source of the two combo boxes. It sounds like the first
one is bound and the second is unbound. Or are you trying to set the default
[quoted text clipped - 58 lines]
Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...cess/2006...--
Message posted via AccessMonster.c omhttp://www.accessmonst er.com/Uwe/Forums.aspx/databases-ms-access/2006...
Nov 18 '06 #5
You shouldn't refresh the Product combobox unless a new product is created.
So set its RowSource at form design and leave it alone. Using the form's
OnCurrent event, set the Part combobox's RowSource and requery the combobox:

cboRS = "SELECT tblParts.PartNa me, tblParts.PartNa me FROM tblParts WHERE
(((tblParts.Pro ductName)='" & Forms!Calls.Pro ductName & "'")) ORDER BY
tblParts.PartNa me;"
Me.ComboPart.Ro wSource = cboRS
Me.ComboPart.Re query

Do you see how the row source string changes when Forms!Calls.Pro ductName is
different? You're passing it as a variable, not a single value now. This
should also be attached to the Product combobox's AfterUpdate event.
AA Arens wrote:
>The field name is present in the Cpontrol Source.

If I move the Me!cmbProductNa me.Value = cmbProductName. ItemData(0)
command to Current in Form then it only displays the first value in the
Product table.
Instead of that, if I remove the Refresh command in
Productname-afterupdate, then I am only able to choose the last values
from the part combo I obtained via the Row Sourse "Select.... .." (see
top)

There might be a solution when I ad a commend that reads the stored
value from the table and besed on than the 2nd combo should give the
right list.
How to read the value and where to put it?

Basically, all choosed value of Parts are stored, either from the right
part list or a false part list (list not belonging to the stored
product).
The value in the field just become blank (but still stored) in the
value does not belong to the last created list (from Select row sourse)
created from a choosen product from another reord.

Bart

On Nov 17, 1:47 am, "kingston via AccessMonster.c om" <u27511@uwe>
wrote:
>You have to run the code that builds the part list combo everytime there is a
different product. IOW, switching to a different record may or may not
[quoted text clipped - 48 lines]
>>http://www.accessmonster.com/Uwe/For...cess/2006...--
Message posted via AccessMonster.c omhttp://www.accessmonst er.com/Uwe/Forums.aspx/databases-ms-access/2006...
--
Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200611/1

Nov 18 '06 #6
I could not solve it but I understand the system.
1. I added also in the "Current" this code, right?

cboRSProduct = "SELECT tblProducts.Pro ductName, tblProducts.Pro ductName
FROM tblProducts ORDER BY ProductName;"
Me.cmbProductNa me.RowSource = cboRSProduct
Me.cmbProductNa me.Requery

The Source code that now apprears in the "Properties " is the same
2. If I copy/paste the cboRS = "Select.... . (etc.) I get the error
"Expected End Of Statement". The Help sectrion could not help me. When
I change the "'" (= " ' ") into "'"" (= " " ") then I get (Where Assist
is a product name):

SELECT tblParts.PartNa me, tblParts.PartNa me FROM tblParts WHERE
(((tblParts.Pro ductName)='Base Station'")) ORDER BY tblParts.PartNa me;

I understand the purpose. How ever, the combo of Parts stays empty.
3. You told me about the attachement to the Product AfterUpdate event,
what should be attached? I guess only:
cboRS = "SELECT tblParts.PartNa me, tblParts.PartNa me FROM tblParts
WHERE (((tblParts.Pro ductName)='" & Forms!Calls.Pro ductName & "'""))
ORDER BY tblParts.PartNa me;"

But Parts combo stays empty.

Bart



On Nov 18, 6:44 pm, "kingston via AccessMonster.c om" <u27511@uwe>
wrote:
You shouldn't refresh the Product combobox unless a new product is created.
So set its RowSource at form design and leave it alone. Using the form's
OnCurrent event, set the Part combobox's RowSource and requery the combobox:

cboRS = "SELECT tblParts.PartNa me, tblParts.PartNa me FROM tblParts WHERE
(((tblParts.Pro ductName)='" & Forms!Calls.Pro ductName & "'")) ORDER BY
tblParts.PartNa me;"
Me.ComboPart.Ro wSource = cboRS
Me.ComboPart.Re query

Do you see how the row source string changes when Forms!Calls.Pro ductName is
different? You're passing it as a variable, not a single value now. This
should also be attached to the Product combobox's AfterUpdate event.

AAArenswrote:
The field name is present in the Cpontrol Source.
If I move the Me!cmbProductNa me.Value = cmbProductName. ItemData(0)
command to Current in Form then it only displays the first value in the
Product table.
Instead of that, if I remove the Refresh command in
Productname-afterupdate, then I am only able to choose the last values
from the part combo I obtained via the Row Sourse "Select.... .." (see
top)
There might be a solution when I ad a commend that reads the stored
value from the table and besed on than the 2nd combo should give the
right list.
How to read the value and where to put it?
Basically, all choosed value of Parts are stored, either from the right
part list or a false part list (list not belonging to the stored
product).
The value in the field just become blank (but still stored) in the
value does not belong to the last created list (from Select row sourse)
created from a choosen product from another reord.
Bart
On Nov 17, 1:47 am, "kingston via AccessMonster.c om" <u27511@uwe>
wrote:
You have to run the code that builds the part list combo everytime there is a
different product. IOW, switching to a different record may or may not
[quoted text clipped - 48 lines]
>http://www.accessmonster.com/Uwe/For...ms-access/2006...
Message posted via AccessMonster.c omhttp://www.accessmonst er.com/Uwe/Forums.aspx/databases-ms-access/2006...--
Message posted via AccessMonster.c omhttp://www.accessmonst er.com/Uwe/Forums.aspx/databases-ms-access/2006...
Nov 18 '06 #7
1. No, set the Product combobox during form design (Properties) and that's
it. I don't think you want ProductName twice.

2. My code will not work because I don't know your exact form name, control
name, etc. I'm giving you only an idea of what the code should look like.
In the cboRS string, you need to replace ComboProduct with the actual control
name. This forum breaks up the code: everything from cboRS to ;" should be
on one long line. I also took out the second tblParts.PartNa me that you had
in the beginning of the SELECT statement.

cboRS = "SELECT tblParts.PartNa me FROM tblParts WHERE (tblParts.
ProductName='" & Me.ComboProduct &"') ORDER BY tblParts.PartNa me;"
Me.ComboPart.Ro wSource = cboRS
Me.ComboPart.Re query

3. The code in part 2 should be attached to the form's OnCurrent event and
the Product combobox's AfterUpdate event. So whenever the record is changed,
the parts combobox will be re-evaluated, and whenever the Product combobox is
updated, the parts combobox will be re-evaluated.

4. If you want the Product combobox re-evaluated (e.g. when you add a new
product), you can add similar code to the event that updates the Product
table.

AA Arens wrote:
>I could not solve it but I understand the system.

1. I added also in the "Current" this code, right?

cboRSProduct = "SELECT tblProducts.Pro ductName, tblProducts.Pro ductName
FROM tblProducts ORDER BY ProductName;"
Me.cmbProductN ame.RowSource = cboRSProduct
Me.cmbProductN ame.Requery

The Source code that now apprears in the "Properties " is the same

2. If I copy/paste the cboRS = "Select.... . (etc.) I get the error
"Expected End Of Statement". The Help sectrion could not help me. When
I change the "'" (= " ' ") into "'"" (= " " ") then I get (Where Assist
is a product name):

SELECT tblParts.PartNa me, tblParts.PartNa me FROM tblParts WHERE
(((tblParts.Pr oductName)='Bas e Station'")) ORDER BY tblParts.PartNa me;

I understand the purpose. How ever, the combo of Parts stays empty.

3. You told me about the attachement to the Product AfterUpdate event,
what should be attached? I guess only:
cboRS = "SELECT tblParts.PartNa me, tblParts.PartNa me FROM tblParts
WHERE (((tblParts.Pro ductName)='" & Forms!Calls.Pro ductName & "'""))
ORDER BY tblParts.PartNa me;"

But Parts combo stays empty.

Bart

On Nov 18, 6:44 pm, "kingston via AccessMonster.c om" <u27511@uwe>
wrote:
>You shouldn't refresh the Product combobox unless a new product is created.
So set its RowSource at form design and leave it alone. Using the form's
[quoted text clipped - 43 lines]
>Message posted via AccessMonster.c omhttp://www.accessmonst er.com/Uwe/Forums.aspx/databases-ms-access/2006...--
Message posted via AccessMonster.c omhttp://www.accessmonst er.com/Uwe/Forums.aspx/databases-ms-access/2006...
--
Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200611/1

Nov 18 '06 #8
Thanks Kingston, it works!

(I indeed changed the combo names to my situation)
I only put back the tblParts.PartNa me from your first solution,
otherwise I got empty combo for Parts (it drops down and seems to have
contents, but tekst was invisible).

Very elegant solution.

Bart
On Nov 18, 11:35 pm, "kingston via AccessMonster.c om" <u27511@uwe>
wrote:
1. No, set the Product combobox during form design (Properties) and that's
it. I don't think you want ProductName twice.

2. My code will not work because I don't know your exact form name, control
name, etc. I'm giving you only an idea of what the code should look like.
In the cboRS string, you need to replace ComboProduct with the actual control
name. This forum breaks up the code: everything from cboRS to ;" should be
on one long line. I also took out the second tblParts.PartNa me that you had
in the beginning of the SELECT statement.

cboRS = "SELECT tblParts.PartNa me FROM tblParts WHERE (tblParts.
ProductName='" & Me.ComboProduct &"') ORDER BY tblParts.PartNa me;"
Me.ComboPart.Ro wSource = cboRS
Me.ComboPart.Re query

3. The code in part 2 should be attached to the form's OnCurrent event and
the Product combobox's AfterUpdate event. So whenever the record is changed,
the parts combobox will be re-evaluated, and whenever the Product combobox is
updated, the parts combobox will be re-evaluated.

4. If you want the Product combobox re-evaluated (e.g. when you add a new
product), you can add similar code to the event that updates the Product
table.

AAArenswrote:
I could not solve it but I understand the system.
1. I added also in the "Current" this code, right?
cboRSProduct = "SELECT tblProducts.Pro ductName, tblProducts.Pro ductName
FROM tblProducts ORDER BY ProductName;"
Me.cmbProductNa me.RowSource = cboRSProduct
Me.cmbProductNa me.Requery
The Source code that now apprears in the "Properties " is the same
2. If I copy/paste the cboRS = "Select.... . (etc.) I get the error
"Expected End Of Statement". The Help sectrion could not help me. When
I change the "'" (= " ' ") into "'"" (= " " ") then I get (Where Assist
is a product name):
SELECT tblParts.PartNa me, tblParts.PartNa me FROM tblParts WHERE
(((tblParts.Pro ductName)='Base Station'")) ORDER BY tblParts.PartNa me;
I understand the purpose. How ever, the combo of Parts stays empty.
3. You told me about the attachement to the Product AfterUpdate event,
what should be attached? I guess only:
cboRS = "SELECT tblParts.PartNa me, tblParts.PartNa me FROM tblParts
WHERE (((tblParts.Pro ductName)='" & Forms!Calls.Pro ductName & "'""))
ORDER BY tblParts.PartNa me;"
But Parts combo stays empty.
Bart
On Nov 18, 6:44 pm, "kingston via AccessMonster.c om" <u27511@uwe>
wrote:
You shouldn't refresh the Product combobox unless a new product is created.
So set its RowSource at form design and leave it alone. Using the form's
[quoted text clipped - 43 lines]
Message posted via AccessMonster.c omhttp://www.accessmonst er.com/Uwe/Forums.aspx/databases-ms-access/2006...
Message posted via AccessMonster.c omhttp://www.accessmonst er.com/Uwe/Forums.aspx/databases-ms-access/2006...--
Message posted via AccessMonster.c omhttp://www.accessmonst er.com/Uwe/Forums.aspx/databases-ms-access/2006...
Nov 19 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2846
by: CGuy | last post by:
URGENT HELP REQUIRED FROM GURUS Hi, I have a custom object that implements ICollection and IListSource. This object has also an enumerator defined for it which implements IEnumerator and IList. Now, I'm trying to bind object to a combo box. The bidning happens correctly, but I'm unable to set the DisplayMember property of the combo box (the count of items in the combo box gives me the correct value, but no items are displayed in the...
0
1212
by: Jonathan LaRosa | last post by:
This is wierd: A client of mine has a combo box on a form that has a list of school names. She has found a wierd error when she tries to search for a specific school. She is trying to type in "Communal School of Boston" in the combo box. After she typed "Comm", the contents of the box showed "Comm. on School Reform", and the cursor was inserted just before the period, such that if she continued trying to type "Communal", the entry in...
5
2383
by: Dalan | last post by:
I have been searching the archives in an effort to discover how to derive a dual use of a single combo box - so far no go. I found the piece below which pretty much represents the usage. To summarize: The cboKeyword box on the frmCustomer looks up Keywords from a separate table that have just a list of keywords and a KeyID number. The bound column is tied to the autonumber and is saved in the frmCustomer table. The keywords appear in the...
2
5472
by: Sean | last post by:
Greetings all, I am attempting to make a form that will filter through several tables that (I believe) have refretial integrity. I am pulling data from several tables into the form and i would like to eventually be able to filter down through the tables untill i can reach one unique record. I am creating a datbase to keep track of registered accounts for a stae program. Each account is registered into the program through a two...
2
1769
by: givlerj | last post by:
I need some help. Here is a little background, I support a MS Access 2k DB (SQL Server 2k backend) that has courses and students. The problem form lets the user pick a course from a drop down and opens a report of the students attending the course in the dropdown. A user can't view on 1 course in the dropdown list. He can view other courses but not this one. Other users on other computers can view the course just fine. Furthermore, I was...
1
2024
by: Peter Proost | last post by:
Hi group I've got a usercontrol containing a textbox and alongside the textbox there's a combobox. I draw this control on top of a grid. So when the user clicks certain columns in the grid the control appears at the right place. This all works just fine except the z-order, at the beginning my usercontrol contained 2 comboboxes and the z-order was ok. But as I said before now it's a textbox and a combobox and since I've changed one of the...
2
1509
by: sara | last post by:
I have a simple form with a combo box on top and then when a record is chosen the remaining 3 fields from the table on the form. My problem is that if I open the form on its own, all is fine. I see the record I wanted and when I change the record in the drop-down, the data fields that go with that record are displayed. HOWEVER, when I open the form as the result of the user double-clicking a record from the main form's list box, that...
2
287
by: Antonio | last post by:
Good morning, everyone. Here is the strange behavior: I have a datagrid (dgPIs) with paging enabled. When I click to view any page in the grid, it runs the private void lnkIPReg method, instead of the private void IPchangePage. The lnkIPReg method refers to a linkbutton that I created in the grid. The datagrid properties list the ItemCommand = lnkIPReg and the PageIndexChange
4
13970
by: whamo | last post by:
I have the need to populate a field based on the selection in a combo box. Starting out simple. (2) tables tbl_OSE_Info and tbl_Input; tbl_OSE_Info has three fields: Key, OSE_Name and OSE_Wt tbl_Input has three fields: OSE_Job, OSE_Name, OSE_Wt I have populated tbl_OSE_Info table. I need to create a form that will store the data in tbl_Input I have racked my brain so much trying to figure out how to auto populate a field based on a...
0
9275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9713
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8713
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7248
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5142
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3806
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3359
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.