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 / July 2007

Tip: Looking for answers? Try searching our database.

Help needed with form and Combo box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CP - 06 Jul 2007 10:58 GMT
This is probably very simple and I have overcomplicated things
I have a form which uses a combo box to pull data from my client database
where once found there details appear on the form which is actually a new
quote/job

 ClientID / Name / Address
 JobID / ClientID / Job data

ClientID being related.  On the form for Jobs I use a combo box to pull in
the details of the customer uses ClientID

The problem is that I may start a new job unaware that the client does not
exist, then obviously it puts up an error message.  I would like the ability
to enter a new client using the same form, therefore:

If I enter a new client it gives a blank job with no client data
I then enter both client and job data at the same time uses the open form
It then autoupdates the client table and adds the new job in the job table

Any help gratefully received?
kingston - 06 Jul 2007 15:19 GMT
Set the combobox's Limit To List property to Yes and create a procedure for
its On Not in List event.  This procedure would insert the new client data
into the client table and refresh your combobox.  How have you set up the
form(s)?  Are you using a subform or do you have multiple forms?

>This is probably very simple and I have overcomplicated things
>I have a form which uses a combo box to pull data from my client database
[quoted text clipped - 16 lines]
>
>Any help gratefully received?
 
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



©2009 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.