B
broncojim
I am new to vba, and have been able to do some simple one or two line coding.
When the code has many quotes or objects I have never heard of, I get
somewhat confused. I have set up ODBC connections to Oracle tables and
created a form to input new records. I want to select a value in a bound
combo box, cmbITEMNUMBER, and have corresponding values automatically
populated in 3 bound text boxes, KVA, SECVOLT and INVLOC. With that being
said, I am hoping someone will be so nice as to help write the code for the
follwing scenario. The following data will be used and is a complete list.
ITEMNUMBER KVA SECVOLT LOCATION
28586000 10 120/240 NEW PY2
28586005 15 120/240 NEW PY2
28586010 25 120/240 NEW PY2
28586015 50 120/240 NEW PY2
28586040 50 240/120 NEW PY2
28586020 75 120/240 NEW PY2
28586025 100 120/240 NEW PY2
28586080 112.5 208/120 NEW PY4B
28586120 150 480/277 NEW PY4A
28586030 167 120/240 NEW PY2
28586095 300 208/120 NEW PY4B
28586165 225 240/120 NEW PY4B
28586160 300 240/120 NEW PY4B
28586115 112.5 480/277 NEW PY4A
28586125 300 480/277 NEW PY4A
28586100 500 208/120 NEW PY4A
28586105 750 208/120 NEW PY4A
28586110 1000 208/120 NEW PY4A
28586135 750 480/277 NEW PY4A
28586140 1000 480/277 NEW PY4A
28586155 2500 480/277 NEW PY4A
28586034 15 480/240 NEW PY3A
28586145 1500 480/277 NEW PY4A
28586130 500 480/277 NEW PY4A
28586075 75 208/120 NEW PY4B
28586085 150 208/120 NEW PY4B
28586090 225 208/120 NEW PY4B
28586035 25 240/120 NEW PY3A
28586045 75 240/120 NEW PY3B
28586050 100 240/120 NEW PY3A
28586055 167 240/120 NEW PY3B
28586001 10 240/480 NEW PY2
28586006 15 240/480 NEW PY2
28586011 25 240/480 NEW PY2
28586019 75 240/480 NEW PY2
28586026 100 240/480 NEW PY2
28586031 167 240/480 NEW PY2
28586170 50 277/480 NEW PY2
28586036 25 480/240 NEW PY3A
28586065 100 480/240 NW PY3A
28586070 167 480/240 NEW PY3A
This data is directly from a query called qryITEMNUMBER, so it can be used
as a recordsoruce. Please help!
Thanks,
Jim
When the code has many quotes or objects I have never heard of, I get
somewhat confused. I have set up ODBC connections to Oracle tables and
created a form to input new records. I want to select a value in a bound
combo box, cmbITEMNUMBER, and have corresponding values automatically
populated in 3 bound text boxes, KVA, SECVOLT and INVLOC. With that being
said, I am hoping someone will be so nice as to help write the code for the
follwing scenario. The following data will be used and is a complete list.
ITEMNUMBER KVA SECVOLT LOCATION
28586000 10 120/240 NEW PY2
28586005 15 120/240 NEW PY2
28586010 25 120/240 NEW PY2
28586015 50 120/240 NEW PY2
28586040 50 240/120 NEW PY2
28586020 75 120/240 NEW PY2
28586025 100 120/240 NEW PY2
28586080 112.5 208/120 NEW PY4B
28586120 150 480/277 NEW PY4A
28586030 167 120/240 NEW PY2
28586095 300 208/120 NEW PY4B
28586165 225 240/120 NEW PY4B
28586160 300 240/120 NEW PY4B
28586115 112.5 480/277 NEW PY4A
28586125 300 480/277 NEW PY4A
28586100 500 208/120 NEW PY4A
28586105 750 208/120 NEW PY4A
28586110 1000 208/120 NEW PY4A
28586135 750 480/277 NEW PY4A
28586140 1000 480/277 NEW PY4A
28586155 2500 480/277 NEW PY4A
28586034 15 480/240 NEW PY3A
28586145 1500 480/277 NEW PY4A
28586130 500 480/277 NEW PY4A
28586075 75 208/120 NEW PY4B
28586085 150 208/120 NEW PY4B
28586090 225 208/120 NEW PY4B
28586035 25 240/120 NEW PY3A
28586045 75 240/120 NEW PY3B
28586050 100 240/120 NEW PY3A
28586055 167 240/120 NEW PY3B
28586001 10 240/480 NEW PY2
28586006 15 240/480 NEW PY2
28586011 25 240/480 NEW PY2
28586019 75 240/480 NEW PY2
28586026 100 240/480 NEW PY2
28586031 167 240/480 NEW PY2
28586170 50 277/480 NEW PY2
28586036 25 480/240 NEW PY3A
28586065 100 480/240 NW PY3A
28586070 167 480/240 NEW PY3A
This data is directly from a query called qryITEMNUMBER, so it can be used
as a recordsoruce. Please help!
Thanks,
Jim