Results 1 to 7 of 7
  1. #1
    kiamba is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2022
    Posts
    14

    Combo Box Help VBA total newby help

    I am a newby and need the combo box to fill in the details as per the attached picture, any help would be appreciated

    thank youClick image for larger version. 

Name:	Capture.jpg 
Views:	23 
Size:	28.0 KB 
ID:	47146

  2. #2
    ssanfu is offline Master of Nothing
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Welcome to the forum.


    Not a lot to go on.

    What/which combo box?
    What details filled in to which controls?
    Looks like you have two controls with problems with the control source. (#Name?)

    Maybe post your dB for analysis?

  3. #3
    kiamba is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2022
    Posts
    14
    the problem i have is i have been handed this to try and fix and get working, so i have no idea what has been done in the past

    the combo box is the client name and need and once the company is selected need it to fill in the client contact, the client phone number, client address and contractor email,

    sorry i am probably not explaining myself properly

    total newby

  4. #4
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,800
    Your level of expertise might make this difficult to solve, especially since you haven't specifically stated what the problem is. I suspect it is the #Name error in the form controls. We might nail down the reason in one post but if you have no idea how to follow up and rectify, this could go on for quite a bit. I'll suggest that the control source for those textboxes starts with = and the control and the field have the same name. If you can follow up on suggestions like that, then great. That follow up would involve explaining why the controls are not just bound to a query or table rather than using an expression (something that starts with =) as their controlsource. If you can't do that, maybe you can copy the db, remove whatever is not necessary to replicate the problem, test that it still occurs, then compact and zip the db and post it here. See how to attach files button at the top of the forum page.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,928
    Could provide db for analysis. Follow instructions at bottom of my post.

    Options for displaying related client info:

    1) Have Client combobox RowSource be a query that includes all client info. Set combobox ColumnCount and ColumnWidths properties relative to number of fields. Then textboxes reference combobox columns by their index. Index numbering begins with 0. So, if client name is in column 2 its index is 1.
    =cbxClient.Column(1)

    2) Include Clients table in form RecordSource then bind textboxes to Clients fields - set those textboxes as Locked Yes and TabStop No to prevent edit.
    Last edited by June7; 01-24-2022 at 09:00 PM.
    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.

  6. #6
    kiamba is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2022
    Posts
    14
    removed file
    Last edited by kiamba; 01-25-2022 at 04:06 AM.

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,928
    Many here will not download from external source. Best to attach to post.

    Did you try either of the suggestions I provided?
    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.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Using Access Newby
    By LearningAccessDB in forum Access
    Replies: 7
    Last Post: 04-02-2020, 11:06 AM
  2. Hello From A Newby
    By Wessex in forum Access
    Replies: 5
    Last Post: 08-14-2015, 11:42 AM
  3. Help! Newby to access - recurring events
    By stevo63 in forum Access
    Replies: 2
    Last Post: 06-27-2012, 06:29 PM
  4. Replies: 2
    Last Post: 05-19-2011, 06:15 AM
  5. Newby to Access Needing Advice
    By johnwyork in forum Access
    Replies: 2
    Last Post: 05-15-2010, 10:55 PM

Tags for this Thread

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