Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 57
  • Thread Tools
  1. Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 10 Times in 10 Posts

    Re: list box in form (access 2007)

    Your version is to be preferred (in fact necessary) when you may have users with non-US system settings. The version without Format will only work correctly if your computer is set to US date format.

  2. rlbroerman
    #32
    Guest

    Re: list box in form (access 2007)

    JH,
    I tried both yours and Hansv suggestions but I get a compile error. I must have something in my form twisted around.
    Rick B
    Attached Files Attached Files

  3. rlbroerman
    #33
    Guest

    Re: list box in form (access 2007)

    Did you see the first question in my post on 8/18 @02:18?
    Rick B

  4. Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 10 Times in 10 Posts

    Re: list box in form (access 2007)

    I'm in a different time zone, so I'm not sure which post you mean.

  5. rlbroerman
    #35
    Guest

    Re: list box in form (access 2007)

    The post said -----"I put pain into a text box in my report. The pain query has multiple pains seperated by commas but I only get one of the pains in my report. Got any ideas?"
    Rick B

  6. Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 10 Times in 10 Posts

    Re: list box in form (access 2007)

    That was on the 28th, not on the 18th.

    I've told you before (for example in <post:=707,176>post 707,176</post:>) that you shouldn't store multiple values in a field.

  7. rlbroerman
    #37
    Guest

    Re: list box in form (access 2007)

    Gary,
    I tried this and it worked great but when I to put it into a report but I only got one pain of the multiple pains seperate by commas in my query qryVisits. Hansv said this would be a problem but since you are familiar with multivalued check boxes I thought you might be able to help.
    Rick B

  8. Silver Lounger
    Join Date
    Aug 2001
    Location
    Frederick, Maryland, USA
    Posts
    1,783
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: list box in form (access 2007)

    Rick,

    Your report should show you the multiple pains separated by comma's if the data is setup as multivalue. I am not sure what the problem is you are having. Can you attach a stripped down version of your database?
    Gary

  9. Silver Lounger
    Join Date
    Aug 2001
    Location
    Frederick, Maryland, USA
    Posts
    1,783
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: list box in form (access 2007)

    One last thing to check - in your report, query, or datasource for the report, make sure you are using the data field for PainID and not PainID.value.
    Gary

  10. rlbroerman
    #40
    Guest

    Re: list box in form (access 2007)

    Gary,
    I thought I attached last time but I guess not.
    Rick B
    Attached Files Attached Files

  11. Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 44 Times in 43 Posts

    Re: list box in form (access 2007)

    In the DB you posted there are required tables missing, some forms missing, but duplicate versions of other things.

    When you post a db for others to look at make it easy by:
    1. <LI>Checking that it works
      <LI>Removing superfluous items
    Your code for opening the report to a specific visit has two problems:
    1. <LI>You start a new in the middle of a line of code. If you need to start a new line, you must use the continuation character _ at the end of the line.
      <LI>visit date is not available on the form to use. Your combo is just a list of patients.
    Your visits table has a primary key of visitID. If you want to open a report to a specific visit, use the ID to identify the visit rather than a combination of SSN and Date. If you use a combo box, the the ID number as a hidden first column.
    Regards
    John



  12. rlbroerman
    #42
    Guest

    Re: list box in form (access 2007)

    JH,
    I think all the necessary forms and tables ar included this time.
    Rick B
    Attached Files Attached Files

  13. rlbroerman
    #43
    Guest

    Re: list box in form (access 2007)

    JH,
    I need to input the SSN and the visit date because that is all the final user will know. They won't know the VisitID.
    Thanks
    Rick B

  14. Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 44 Times in 43 Posts

    Re: list box in form (access 2007)

    They don't have to know it, or see it, but Access can still use it. Typically you would have a combo box that displays SSN and Date, but has visitID as a hidden first column, and that is what your code would use.
    Regards
    John



  15. rlbroerman
    #45
    Guest

    Re: list box in form (access 2007)

    JH,
    I tried this, which is a great solution, but what I added to the code is strWhere = "[VisitID] = " & Chr(34) & Me.[ComboSSNVD] & Chr(34) & "" but when I select an SSN and Visit Date in the combo box and press the command button to execute the above I get "Enter Parameter Value" for " VisitID"
    I have had this kind of problem but can't remember how to solve it.
    Can you help, please.
    Rick B

Page 3 of 4 FirstFirst 1234 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •