Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476

    Trouble with Combo Box

    In a Form I'm having some difficulty with using Combo Box. Within my Form I have a fld with the 'Sales Rep' (I have 6-Sales Rep) When I choose a 'Sales Rep' per one Record that same 'Sales Rep" appears in all of the rest of my Records. When I go to the next Record & change the 'Sales Rep' to a different sales rep now that 'Sales Rep' is in all of my Records.



    Could anyone provide me some insight in using Combo Boxes & how I can rectify my dilemma?

    Thanks

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Tell us more about the combobox and the form.
    What is the recordsource of the combo?
    What code do you have in what event of the combobox?

    Do you really update with SalesRep, or is it the Id of the SalesRep?

  3. #3
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Hey Orange!

    Actually (a side story) I had a similar issue with inserting photo of each one of the sale' vehicles in each Form When I would insert one phot (jpg) in one Form they would appear in all of the other Forms which was NOT what I wanted. Anyhow, June helped me out of that jam by telling me to make the 'Photo' field in the Table as an Attachment & that worked.

    Anyways, I'll sent you my dbs in mdb & you can take a look if you'll like. You want to look in the Vehicle Inventory
    Form. Presently I have the Sales Rep in a list box, butr I would like to know how to make ythe 'Sales Rep' be a
    Combo Box.

    Thanks Orange....

    I'm unableto save my dbs to an earlerversion due too features that I'm using whiich aren't available. Any suggestions

  4. #4
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Orange,
    I managed to convert the 'Sales Rep' into a combo box. One question though, my Vehicles Inventory Form is a split form. Now on the top half (the Form) I was able to change the label of Sales Rep to 'Sales Rep." However, on the bottom half (the datasheet) the field (or Column) name is 'Combo 1400' any why I can change it back to 'Sales Rep'?

  5. #5
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Split form was introduced in acc2007/ I have 2003. Hopefully someone else with 2007 or 2010 can help.

  6. #6
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Shall I post another thread or...?

  7. #7
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Quote Originally Posted by djclntn View Post
    Shall I post another thread or...?
    No I think it's the right thread/forum. You just need someone with experience with split form --

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,899
    I tested converting a textbox to combobox. The labels were unaffected.

    I replicated the issue by 'disassociating' label from the box. When I reconnected label to box, labels in both sections showed same text.

    Delete and paste label back onto form (ctl-x, ctl-v). Then before saving form you have opportunity to reassociate label.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  9. #9
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    It worked June -- thanks a bunch! For my own perferences I see no other need to make any other field be a combo box due to lack of repeation; might you...?

    I think that Orange & you really rock!!!!! No disrespect to Orange nor anybody else, but I wonder why they don't upgrade to the latest version of Access? Well, I guess that they have their reasons.

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,899
    If it ain't broke ...

    I don't see any really big advantages from 2007 to 2010. I adjusted to 2007 rather easily but 2010 has some behavior that annoys me. I have used one enhancement in 2010 for a personal project but for work, I don't see need for employer to make the expense.

    What do you mean by 'lack of repetition', might I what?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  11. #11
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    June,

    Don't mean to keep bugging you -- in this Report I have this field for sorting purposes only, but I don't want to see it in the Report. How can I hide or get around what I've described?

  12. #12
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Create a query with the fields you need and the field for the sort. For the sort field do not mark it for display.
    Test the query to make sure all the fields and sort order are correct. Save the query, or use that query as the recordsource for the report.
    I don't have 2010, so the look and terminology may be a little different.

    Good luck.

  13. #13
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,899
    I believe can leave it marked for display in the query, just don't bind a textbox to it.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  14. #14
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Nevermind. I just shrunk sp-? the field in the Report where it's not visable -- it worked. BTW, in the Property Sheet, when I highlighted the... (I know that "field" is probably the wrong term refered to as in a Report so please excuse my ignorance) content/column... I change "Visability" from yes to no, but made no difference. I don't know what that does...?

  15. #15
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,899
    Setting textbox Visible property to No should make it not show on the form or report. However, I am not sure where you actually set 'Visibility'.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Having trouble with autofill
    By Kerrydunk in forum Forms
    Replies: 1
    Last Post: 04-25-2011, 11:26 PM
  2. Trouble with (R)
    By NOTLguy in forum Access
    Replies: 3
    Last Post: 10-29-2010, 11:55 AM
  3. Iff trouble
    By JackT in forum Access
    Replies: 3
    Last Post: 08-18-2010, 02:28 PM
  4. Expression trouble
    By ROB in forum Access
    Replies: 2
    Last Post: 06-08-2010, 09:36 AM
  5. Hi ! Im having time trouble
    By gayano in forum Access
    Replies: 0
    Last Post: 06-28-2007, 12:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums