Advertisement

07.28.2008 at 03:03PM PDT, ID: 23602343
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

How to set value of another field from drop down combo box selection

Asked by pengbsam in Access Forms, Access Coding/Macros

Tags: ,

It is a very stupid question, but I am running out of patience looking on experts and google because I don't know how to express myself well enough to find useful answers. Supposely this should be extreme easy.

Ok.. here it is..
I got a UOMmast table with SalesUOM and UOMqty in the table.

I got two fields,
1 salesUOM combo box (Comb20) with selected value that pop in from the UOM table.. works fine.
2. UOMqty normal fields (SalesUnit). What I want to happen is when user select a value from the drop down in SalesUOM fields, UOMqty will get the UOMqty value from UOMmast table with same SalesUOM as the drop down.

I try to use something like this
Private Sub Combo20_Change()
    Dim rs As Recordset
    Dim qdf As QueryDef
   
        CurrentDb.QueryDefs("qtylookup").SQL = "select UOMQTY from UOMMast where UOMName = [forms]![itmmasform]![Combo20]"
    Set rs = CurrentDb.OpenRecordset("qtylookup")
    If Not rs.EOF Then
        rs.MoveFirst
        SaleUnit.Value = rs.Fields("UOMQTY").Value
    End If
    rs.close
       
   
End Sub

But I got a runtime 3265 item not found in this collection error message. What am I doing wrong here?
I didn't even think I was gonna use VBA on this. I havent' worked wtih VB since high school. (mostly Java and C# now)
 
Start Free Trial
[+][-]07.28.2008 at 04:15PM PDT, ID: 22107558

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Forms, Access Coding/Macros
Tags: VBA, Access
Sign Up Now!
Solution Provided By: eghtebas
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.28.2008 at 04:20PM PDT, ID: 22107594

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.28.2008 at 04:24PM PDT, ID: 22107616

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.28.2008 at 04:32PM PDT, ID: 22107651

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.28.2008 at 04:33PM PDT, ID: 22107652

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628