Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / March 2008

Tip: Looking for answers? Try searching our database.

subform assign value

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
NetworkTrade - 26 Mar 2008 02:56 GMT
Access03

Have an Order Main form and a Customer Subform - their link is the customer
key.

When I start a new order the Order form will autonumber increment its order
key up, and the Customer subform key is pending until data entry.

I have a combo box on the main form to look up a past customer...upon select
it populates the subform fine...and the customer key is passed to the order
main form.

All works fine.

But if there is a brand new customer and I don't use the combobox - when I
type the first letter of any customer info in the subform - it throws the
"Can't assign a value for this object" message box.....however one presses
OK, but then you can carry on just fine and everything works....

not clear to me why it is throwing this error message that appears
invalid....would welcome clarification...

Signature

NTC

Arvin Meyer [MVP] - 26 Mar 2008 15:26 GMT
You should have the LimitToList property set to Yes, and you can deal with
the error by using the NotInList event. There is some generic sample code
for dealing with this at my website:

http://www.datastrat.com/Code/NotInListCode.txt
Signature

Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

> Access03
>
[quoted text clipped - 21 lines]
> not clear to me why it is throwing this error message that appears
> invalid....would welcome clarification...
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.