Page 1 of 2 12 LastLast
Results 1 to 15 of 28
  1. #1
    shree is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    27

    Forms text box issue

    Hi all,

    it is regarding forms text box, i have form there are many text boxes they will gives me individual broker or broker ID total using Dsum formula criteria

    but problem is where some time new broker is come for that i do not have text box then i have to add new text box for new broker even formula.

    it very difficult to do every time. is it possible through macro please advice me!!




    Dsum = =DSum("[BAL]","BALANCE","[Broker ID]='A2020'")

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,597
    Programatically modifying design of objects is not something I have ever done and sounds more difficult than just doing the edits. Also, doubt macro can do this, would have to be VBA.

    Possibly a subform would be better than a lot of textboxes.
    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.

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by shree View Post

    ...but problem is where some time new broker is come for that i do not have text box then i have to add new text box for new broker even formula.
    I'm afraid your explanation makes little sense! Adding a new Control for each new broker is an activity you would find in a spreadsheet, not in a relational database! In a relational database you have a single Field, with a Textbox that is Bound to it, for entering brokers. When you add a new broker you add a new Record, entering the broker's name in the appropriate Control/Field.

    Unless you can give us a better explanation of what you're trying to do, here, I think you really need to follow the directions at the bottom of June7's post and attach your file for us to look at.

    Linq ;0)>

  4. #4
    shree is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    27
    Quote Originally Posted by June7 View Post
    Programatically modifying design of objects is not something I have ever done and sounds more difficult than just doing the edits. Also, doubt macro can do this, would have to be VBA.

    Possibly a subform would be better than a lot of textboxes.
    Hi thanks for your reply but what should i do know? please advice

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,597
    Suggestions provided were:

    Explore subform arrangement.

    Maybe provide your project for analysis.

    New suggestion: Maybe you should be doing a report instead of a form.
    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
    shree is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    27

    Forms text box issue

    File is attached.
    Attached Files Attached Files

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,597
    Which form is the focus of this issue?
    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.

  8. #8
    shree is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    27
    Thanks for your prompt reply!! "Form3" you have to type in text0 " AD40123" (i.e. concatenate of Fund and cusip filed) select today's date in text2 and click on click me!! button

    there are two text box lable name is BPN AND GSAM its gives us the totals, if in further JP Morgan broker add then i have to add the JP text box again and dsum formulas, this is the exa but in live there are many brokers i can not say which broker when they will exist. that is the actual issue

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,597
    Suggestion:

    1. Activate the form Header section. Move all the current controls into Header. Can probably delete the broker DSum textboxes.

    2. Set form RecordSource to Balance query. I revised the query to:
    SELECT ENTRY.[Broker ID], ENTRY.[Broker Name], Sum(ENTRY.SELL) AS SumOfSELL, Sum(ENTRY.BUY) AS SumOfBUY, Sum([BUY]-[SELL]) AS BAL
    FROM INFORMATION INNER JOIN ENTRY ON INFORMATION.CONCATENATE = ENTRY.CONCATENATE
    WHERE (((ENTRY.CONCATENATE)=[forms]![Form3]![CONCATENATE]) AND ((ENTRY.[ENTRY DATE])<=[forms]![form3]![ENTRY DATE]))
    GROUP BY ENTRY.[Broker ID], ENTRY.[Broker Name];

    3. Create 2 textboxes in the Detail section and set ControlSource property to fields [Broker Name] and [Bal]

    4. Change the code for Click Me to: Me.Requery

    5. Set form to Continuous View
    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.

  10. #10
    shree is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    27
    hi thanks but could you please attached new amended file
    it is good for me to change here as well

  11. #11
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,597
    Suggest you follow the very clear and distinctly outlined steps and modify a copy of your form, if you want to preserve the current form.
    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.

  12. #12
    shree is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    27
    Hi thanks a lot !! but my totals not coming as i want, i want individual broker total exa GSAM - 2000 BPN - 1000 like that in text boxes if i choose the records source to detail text box it showing only GSAM in broker name and 0 in bal.

  13. #13
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,597
    All the suggested edits worked for me. Post your revised db and will analyze your efforts.
    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
    shree is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    27
    hi please have a look and reply please

  15. #15
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,597
    No attachment to the last post.
    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. Issue w/ VBA code for Opening/Closing Forms
    By need_help12 in forum Forms
    Replies: 5
    Last Post: 04-20-2012, 11:09 AM
  2. Replies: 2
    Last Post: 03-01-2012, 12:21 PM
  3. multi forms open & focus issue
    By tfulmer in forum Programming
    Replies: 1
    Last Post: 08-23-2011, 04:00 PM
  4. Text Boxe Issue
    By wes028 in forum Access
    Replies: 2
    Last Post: 01-19-2010, 01:36 PM
  5. Need help with query table issue using forms
    By KLynch0803 in forum Access
    Replies: 1
    Last Post: 06-02-2009, 10:40 PM

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