Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Databases > Access   »   adding customer

 
Question Tools Search this Question Display Modes
Question
 
 
#1  
Old Mar 29, 2006, 03:38 PM
jduke44
Full Member
jduke44 is offline
 
Join Date: May 2005
Posts: 401
jduke44 See this member's comment history on his/her Profile page.
adding customer

I have been learning and building an ms access database. Ther version is 2002. I have all my tables built and the forms built. I wanted to be able to add a customer so that it would get included in a drop down box. I can add it the problem is I have to close the form and reopen it so I can see it in the list. Would I have to add code to get this to update automatically or is there something within the properties? Thanks.

Reply With Quote
 
     

Answers
 
 
Old Apr 4, 2006, 05:36 AM   #2  
ScottGem
Computer Expert
ScottGem is offline
 
ScottGem's Avatar
 
Join Date: Jan 2003
Location: LI, NY - USA
Posts: 21,820
ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.
Pay to call ScottGem for advice ($.75/min)
Call ScottGem via Skype™
You need to requery the combobox after you add the customer. The code would be:

Me.comboboxname.requery

But where you put it depends on your work flow.
  Reply With Quote
 
     
 
 
Old Apr 7, 2006, 02:04 PM   #3  
jduke44
Full Member
jduke44 is offline
 
Join Date: May 2005
Posts: 401
jduke44 See this member's comment history on his/her Profile page.
Scott, thanks for responding. As you know I am just learning Access so bare with me. I uderstand I am vague in what my project is but when you say to add the code you provided are talking to place it in an event procedure?

If so what would be my choices? Would I add it under the event tab where it has After Update and so forth. The I would want to build a code? I tried it in different places but it didn't work. I want to learn this on my own (with a little help) so doing it wouldn't be beneficial but if you point me in the right direction, I'm sure I can figure it out. Thanks for your time.
  Reply With Quote
 
     
 
 
Old Apr 7, 2006, 06:01 PM   #4  
ScottGem
Computer Expert
ScottGem is offline
 
ScottGem's Avatar
 
Join Date: Jan 2003
Location: LI, NY - USA
Posts: 21,820
ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.
Pay to call ScottGem for advice ($.75/min)
Call ScottGem via Skype™
Access is an event driven platform. Code is triggered by events like the update of a control the press of a button, etc. You need to look thru the flow of how you are adding a new customer. Somewhere after you add the customer to the table, you need to requery the combo.
  Reply With Quote
 
     
 
 
Old Apr 7, 2006, 06:48 PM   #5  
jduke44
Full Member
jduke44 is offline
 
Join Date: May 2005
Posts: 401
jduke44 See this member's comment history on his/her Profile page.
Scott, I think I figured it out thanks to you. After placing the code in various events it worked under the "on Got Focus " event. So I assume once the combobox recieved control it would requery. I think I am understanding it a little. I might have more questions later. Thanks for your help.
  Reply With Quote
 
     
 
 
Old Apr 8, 2006, 04:00 AM   #6  
ScottGem
Computer Expert
ScottGem is offline
 
ScottGem's Avatar
 
Join Date: Jan 2003
Location: LI, NY - USA
Posts: 21,820
ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.
Pay to call ScottGem for advice ($.75/min)
Call ScottGem via Skype™
The Got Focus event was certainly a possibilty. There were probably a couple of different places you could have put it and have it work.
  Reply With Quote
 
     
 
 
Old Apr 11, 2006, 04:57 PM   #7  
jduke44
Full Member
jduke44 is offline
 
Join Date: May 2005
Posts: 401
jduke44 See this member's comment history on his/her Profile page.
It works and I'm happy. As I learn Access I'll hopefully find the more efficient way of doing things. That is if I do any more databases. It's been somewhat fun learning this. I'll probably have more questions in the future. Thanks for your help.
  Reply With Quote
 
     
 
 
Old Apr 12, 2006, 04:14 AM   #8  
ScottGem
Computer Expert
ScottGem is offline
 
ScottGem's Avatar
 
Join Date: Jan 2003
Location: LI, NY - USA
Posts: 21,820
ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.
Pay to call ScottGem for advice ($.75/min)
Call ScottGem via Skype™
Glad to assist
  Reply With Quote
 
     


Question Tools Search this Question
Search this Question:

Advanced Search
Display Modes

 
Similar Sponsors

Similar Questions
Question Asker Topic Answers Last Post
Customer Wants refund secboxman518 Corporate Law 12 Jan 6, 2006 11:27 AM
Customer Survey Curlyben Computers for Beginners 4 Apr 19, 2005 06:31 PM
Customer Event manser Marketing 1 Feb 15, 2005 06:30 AM
Customer Service Stories Peter_Q Customer Service 1 Jun 9, 2004 11:13 AM
customer services misssaima Banking 1 Feb 6, 2003 04:45 PM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 11:19 PM.

Content Relevant URLs by vBSEO 3.0.0 RC6 © 2006, Crawlability, Inc.