![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all, I'm having a problem with a combo box. The combo box shows broker id's and broker name. The bound field is broker id, the limit to list property is set to Yes and the Default Value is set to zero. The broker id is defined in the details table as a number (integer). If a user enters the wrong broker id a message pops up: The text you entered isn't an item in the list, but if a blank is entered (hitting the space key by accident) no message pops up and the record will be saved with a blank broker id. Is there another property that needs to be set in combo box or in the table that will not allow a blank to be entered? I am using Access 2007 Joe V. |
#3
| |||
| |||
|
|
Hi all, I'm having a problem with a combo box. The combo box shows broker id's and broker name. The bound field is broker id, the limit to list property is set to Yes and the Default Value is set to zero. The broker id is defined in the details table as a number (integer). If a user enters the wrong broker id a message pops up: The text you entered isn't an item in the list, but if a blank is entered (hitting the space key by accident) no message pops up and the record will be saved with a blank broker id. Is there another property that needs to be set in combo box or in the table that will not allow a blank to be entered? I am using Access 2007 Joe V. |
#4
| |||
| |||
|
|
Hi all, I'm having a problem with a combo box. The combo box shows broker id's and broker name. The bound field is broker id, the limit to list property is set to Yes and the Default Value is set to zero. The broker id is defined in the details table as a number (integer). If a user enters the wrong broker id a message pops up: The text you entered isn't an item in the list, but if a blank is entered (hitting the space key by accident) no message pops up and the record will be saved with a blank broker id. Is there another property that needs to be set in combo box or in the table that will not allow a blank to be entered? I am using Access 2007 Joe V. |
#5
| |||
| |||
|
|
jovii wrote: Hi all, * *I'm having a problem with a combo box. The combo box shows broker id's and broker name. The bound field is broker id, the limit to list property is set to Yes and the Default Value is set to zero. The broker id is defined in the details table as a number (integer). |
|
* If a user enters the wrong broker id a message pops up: The text you entered isn't an item in the list, but if a blank is entered (hitting the space key by accident) no message pops up and the record will be saved with a blank broker id. * Is there another property that needs to be set in combo box or in the table that will not allow a blank to be entered? I am using Access 2007 Joe V. Do you have a record in the combo's record source that is blank? |
#6
| |||
| |||
|
|
You have a couple of errors ........ 1. * *The default value can not be 0. There is no BrokerID and BrokerName with a BrokerID = 0 in the table where you get BrokerID and BrokerName. 2. * *In the table where you are entering BrokerID with the combobox, BrokerID should be defined as a number (long integer). Steve, |
|
Steve san... (AT) penn (DOT) com "jovii" <jov... (AT) aol (DOT) com> wrote in message news:9a267dc6-07e9-495d-9b39-42d957753828 (AT) o32g2000yqm (DOT) googlegroups.com... Hi all, * I'm having a problem with a combo box. The combo box shows broker id's and broker name. The bound field is broker id, the limit to list property is set to Yes and the Default Value is set to zero. The broker id is defined in the details table as a number (integer). *If a user enters the wrong broker id a message pops up: The text you entered isn't an item in the list, but if a blank is entered (hitting the space key by accident) no message pops up and the record will be saved with a blank broker id. *Is there another property that needs to be set in combo box or in the table that will not allow a blank to be entered? I am using Access 2007 Joe V. |
#7
| |||
| |||
|
|
You have a couple of errors ........ 1. The default value can not be 0. There is no BrokerID and BrokerName with a BrokerID = 0 in the table where you get BrokerID and BrokerName. 2. In the table where you are entering BrokerID with the combobox, BrokerID should be defined as a number (long integer). Steve, |
|
Steve san... (AT) penn (DOT) com "jovii" <jov... (AT) aol (DOT) com> wrote in message news:9a267dc6-07e9-495d-9b39-42d957753828 (AT) o32g2000yqm (DOT) googlegroups.com... Hi all, I'm having a problem with a combo box. The combo box shows broker id's and broker name. The bound field is broker id, the limit to list property is set to Yes and the Default Value is set to zero. The broker id is defined in the details table as a number (integer). If a user enters the wrong broker id a message pops up: The text you entered isn't an item in the list, but if a blank is entered (hitting the space key by accident) no message pops up and the record will be saved with a blank broker id. Is there another property that needs to be set in combo box or in the table that will not allow a blank to be entered? I am using Access 2007 Joe V. |
#8
| |||
| |||
|
|
See commnts below ..... "jovii" <jov... (AT) aol (DOT) com> wrote in message news:9576522d-bb33-489a-8da2-82478eea586a (AT) k19g2000yqn (DOT) googlegroups.com... On Jul 27, 11:56 am, "Steve"<help_available_at_very_reasonable_ra.. . (AT) contactme (DOT) com> wrote: You have a couple of errors ........ 1. The default value can not be 0. There is no BrokerID and BrokerName with a BrokerID = 0 in the table where you get BrokerID and BrokerName. 2. In the table where you are entering BrokerID with the combobox, BrokerID should be defined as a number (long integer). Steve, 1. *The default value can be 0 because a broker might not be involved in the trade. 0 is a valid selection in the combo box Wrong! BrokerID should be autonumer in your Broker tables. Autonumber is Long Integer. Therefore, all relationships to BrokerID in the broker table must be long integer. Access requires that the primary key and the foreign key in a relationship be the same data type. 2. *The brokerid field is defined as a number (integer). Any reason why you prefer long integer instead of integer? It's an Access requirement! See #1 Steve san... (AT) penn (DOT) com "jovii" <jov... (AT) aol (DOT) com> wrote in message news:9a267dc6-07e9-495d-9b39-42d957753828 (AT) o32g2000yqm (DOT) googlegroups.com.... Hi all, I'm having a problem with a combo box. The combo box shows broker id's and broker name. The bound field is broker id, the limit to list property is set to Yes and the Default Value is set to zero. The broker id is defined in the details table as a number (integer). If a user enters the wrong broker id a message pops up: The text you entered isn't an item in the list, but if a blank is entered (hitting the space key by accident) no message pops up and the record will be saved with a blank broker id. Is there another property that needs to be set in combo box or in the table that will not allow a blank to be entered? I am using Access 2007 Joe V. |
#9
| |||
| |||
|
|
Why should brokerid be an autonumber. I work for a small company and there are only 15 brokers and the office manager prefers to assign brokerid himself. Since the broker id in the details table and the broker id (primary key) in the brokers table are both defined as integer it meets the Access requirement. |
#10
| |||
| |||
|
|
"jovii" <jov... (AT) aol (DOT) com> wrote in message news:14b66deb-e2b5-4870-b797-40875eb7c3fd (AT) k19g2000yqn (DOT) googlegroups.com... Why should brokerid be an autonumber. *I work for a small company and there are only 15 brokers and the office manager prefers to assign brokerid himself. Since the broker id in the details table and the broker id (primary key) *in the brokers table are both defined as integer it meets the Access requirement. You can largely disregard most of what Steve says, when he isn't trolling for victims he's giving dodgy advice. |
![]() |
| Thread Tools | |
| Display Modes | |
| |