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

    Forms text box issue

    hi please find the attachment revise db and thanks a lot for you time really!! n sorry as well for bothering you again and again!!
    Attached Files Attached Files

  2. #17
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,963
    Step 1 said: Move ALL the controls to the Header section, not SOME, ALL. However, I guess the Comment textbox should stay in detail section but need to fix the code that calculates this value. Why not put the expression in the Comment textbox ControlSource? I don't know what this Comment is for.

    Step 3 said: Create TWO textboxes in Detail section, not FOUR.

    I will add step 6: Arrange the two texboxes side-by-side and reduce the size of the Detail section to just bigger than the textboxes.

    Using criteria of AD40123 and 5/16/2012, the results in Detail section (agrees with the DSum textboxes) I see are:

    GSAM 10000
    BPN -50000

    Even without these additional corrections, the project you provided shows the same results, just shows them twice for each broker.
    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. #18
    shree is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    27
    HI June Thanks a lot! its working issue is resolved , I happy to say this accessforums is amazing for who has face the barrier in access. you people are too good.

    If in future i need help on my project i will contact you again. thanks!!

  4. #19
    shree is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    27
    Hi June,

    i have one more issue remember that comment text box, this text box gives me the comment of detail of all broker position in string its help me to copy and update on my another software. now we can create via macro this comment
    previously i create like this :

    Private Sub Text9_GotFocus()
    Text9 = "- This exception is related to collateral -" & _
    IIf(IsNull([Forms]![FORM3].[Text5]), " ", "BPN" & "Shares" & [Text5]) & " " & IIf(IsNull([Forms]![FORM3].[Text7]), " ", "GSAM" & [Text7])
    End Sub

    but now we have only two text box so it is giving me only one brokers detail. is it possible through macro to bring me all data security held it comes in one text box means prepare the comment using loop. thanks!!

  5. #20
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,963
    You want to repeat every broker name and the shares amount into one long concatenated string? With the revised form structure that won't be easy.

    Review this: http://allenbrowne.com/func-concat.html
    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. #21
    shree is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    27
    Hi June, Previously what you suggest that is perfect for me, but i want to create another one text box its gives us the comment like : (Date - Current date) & "- This exception is related to collateral" A) [Broker Name] & [Broker ID] & [Bal] 2) Next Broker ..... - & (Date - First date of next month).

  7. #22
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,963
    If you want to concatenate data from related records into a continuous string, need code. Review the link I referenced. There may be a limit on how long the string can be.

    Exactly why do you need to display like this in a textbox? What do you want to do with the created string?
    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. #23
    shree is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    27
    Thanks June, This is my database file but i have to update the comment in client software for this particular security your shares are held with these brokers,

    it is easy them to read of security bifurcation. n could you please clear about date thanks !

  9. #24
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,963
    'clear about date' - what date?

    'to read of security bifurcation' - what does that mean?

    Maybe instead of writing to a textbox, you should write data to a csv file or export to Excel.
    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. #25
    shree is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    27
    Ok June instead of text box comment, it good to prefers CSV file,and in text box has character limit.

    client has separate software in that software we have to update the end of the day balance in string format so they can easy to read the security allocation on brokers. june please help me out

  11. #26
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,963
    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. #27
    shree is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    27
    but creating comment for each security i have to export the data to in excel it will become pain full activity for us,

    is it possible we can export the data of Balance query in excel so it will gives us the all securities data or comment automatically

  13. #28
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,963
    You can export any table or query. You still want the concatenated comment along with the individual data fields? That doesn't make sense to me.
    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 2 of 2 FirstFirst 12
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