If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
look up a value for a table if it isn't there creat a new row
Hi,
I'm not used to Access at all. I have 2 tables - Customer and appt. I want to be able to enter a Customer Number in a form and if the customer number exists, show the customer info on the form and related appt details on the subform. If I enter a customer ID that does not exist I want access to allow me to create a new record of customer info. How do I do this? |
#2
|
|||
|
|||
look up a value for a table if it isn't there creat a new row
Jules
What type of control are you using on the form to enter the CustomerID? A combobox? A textbox? A combobox gives you a NotInList event you can use to add a new record. By the way, most folks don't memorize "customerIDs". Customer names are much easier to remember. Perhaps you want to reconsider forcing your users to enter customerIDs? Regards Jeff Boyce Microsoft Office/Access MVP "Jules" wrote in message ... Hi, I'm not used to Access at all. I have 2 tables - Customer and appt. I want to be able to enter a Customer Number in a form and if the customer number exists, show the customer info on the form and related appt details on the subform. If I enter a customer ID that does not exist I want access to allow me to create a new record of customer info. How do I do this? |
#3
|
|||
|
|||
look up a value for a table if it isn't there creat a new row
Hi
Thanks for your help. I have tried a combo box but don't really know how it works. I'd imagined having a field to type the ID number (has to be used) and if that customer existed, the other fields being populated with relevant info. If not fields blank for filling in. Am I really slow, I can't find anything in my 'dummies' book that makes sense?? "Jeff Boyce" wrote: Jules What type of control are you using on the form to enter the CustomerID? A combobox? A textbox? A combobox gives you a NotInList event you can use to add a new record. By the way, most folks don't memorize "customerIDs". Customer names are much easier to remember. Perhaps you want to reconsider forcing your users to enter customerIDs? Regards Jeff Boyce Microsoft Office/Access MVP "Jules" wrote in message ... Hi, I'm not used to Access at all. I have 2 tables - Customer and appt. I want to be able to enter a Customer Number in a form and if the customer number exists, show the customer info on the form and related appt details on the subform. If I enter a customer ID that does not exist I want access to allow me to create a new record of customer info. How do I do this? |
#4
|
|||
|
|||
look up a value for a table if it isn't there creat a new row
Try posting in the .forms newsgroup, asking for ideas about using a
combobox. Either way, whether you have users enter an ID, then write the code to look for matching IDs, or whether you use a combobox and have the users select the customer they're after, you are going to need to learn more about using Access. It can be a bit of a steep learning curve! Good luck! Regards Jeff Boyce Microsoft Office/Access MVP "Jules" wrote in message news Hi Thanks for your help. I have tried a combo box but don't really know how it works. I'd imagined having a field to type the ID number (has to be used) and if that customer existed, the other fields being populated with relevant info. If not fields blank for filling in. Am I really slow, I can't find anything in my 'dummies' book that makes sense?? "Jeff Boyce" wrote: Jules What type of control are you using on the form to enter the CustomerID? A combobox? A textbox? A combobox gives you a NotInList event you can use to add a new record. By the way, most folks don't memorize "customerIDs". Customer names are much easier to remember. Perhaps you want to reconsider forcing your users to enter customerIDs? Regards Jeff Boyce Microsoft Office/Access MVP "Jules" wrote in message ... Hi, I'm not used to Access at all. I have 2 tables - Customer and appt. I want to be able to enter a Customer Number in a form and if the customer number exists, show the customer info on the form and related appt details on the subform. If I enter a customer ID that does not exist I want access to allow me to create a new record of customer info. How do I do this? |
Thread Tools | |
Display Modes | |
|
|