Page 5 of 5 FirstFirst 12345
Results 61 to 74 of 74
  1. #61
    Mohanss82 is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Location
    India
    Posts
    44

    I am comparing our Records vs Bank records where I want the Cheque no & Cheque Amt from Check Database to be retrieved for comparing. Please suggest me a way around.


    Attached is my Union Query for comparison:

    SELECT [tbl_DFSI Weekly Cheques].[Contract Number], [tbl_DFSI Weekly Cheques].[EMI Date] from [tbl_DFSI Weekly Cheques]
    UNION SELECT [tbl_Citi Weekly Banking MIS].[ContractNo], [tbl_Citi Weekly Banking MIS].[ChequeDate] from [tbl_Citi Weekly Banking MIS];

    Relationship:
    Click image for larger version. 

Name:	Relationship.jpg 
Views:	17 
Size:	101.0 KB 
ID:	20415

  2. #62
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    Why don't you build a query that joins tables on the [Cheque Number] and [ChequeNo] fields?
    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. #63
    Mohanss82 is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Location
    India
    Posts
    44
    Can you help me on this ?

  4. #64
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    How? What do you not understand about building a query that joins two tables on common data? Use query builder.
    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.

  5. #65
    Mohanss82 is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Location
    India
    Posts
    44
    Hi. I created an Query to get the matching results between our Comparison table and Check database. Based on which I tried to compare Ours vs Bank, where I am getting this below error msg again. Please help.

  6. #66
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    I don't understand how query builder would generate that error. Never seen it before. Why would Visual Basic be involved? Why would there be a custom function involved?
    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.

  7. #67
    Mohanss82 is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Location
    India
    Posts
    44
    Hi,

    I am trying to compile a Report using a Access form by entering multiple primary keys values separated using comma, so that at the command of a button,a Report should be exported for those values. otherwise we will have to look out manually for 100 such records daily. Please suggest.

  8. #68
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    Would have to analyze the VBA code to debug the error.

    For multiple parameters on one field, review http://allenbrowne.com/ser-50.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.

  9. #69
    Mohanss82 is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Location
    India
    Posts
    44
    Hi All,

    I still require help on below 2 important stuffs:

    1. I am trying to compile a Report from a Access form by entering values separated using comma and at the click of a button,a Report should be exported for those values. otherwise we will have to look out manually for 100 such records daily. Please suggest.

    2. I want to update the status for selected records by using records selectors, where I will select few and change the Cheque status list box from the form header. Please help.


    Attached Images

  10. #70
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    1. VBA code to construct criteria string that uses IN operator. Is the field a number or text type? Otherwise, code to parse the CSV string and recombine with OR operators. There may be a limit on number of OR operators in an SQL WHERE clause - there is a limit of 99 AND operators.

    2. Run an SQL UPDATE action. I see a combobox, not a listbox.
    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. #71
    Mohanss82 is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Location
    India
    Posts
    44
    Thanks.

    Will try on the same and will get back to you.

    I created this as an desktop app, but I wanted this to create/host in a web db. Is that possible just sharing in a url or through any other way ?

  12. #72
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    I have never built web app but AFAIK, just giving someone a url will not accomplish sharing, except maybe to download a file. Common topic in forum. Here is one https://www.accessforums.net/sharepo...ess-50975.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.

  13. #73
    Mohanss82 is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Location
    India
    Posts
    44
    I tried few things and couldn’t find any update or clue on my requirements yet. Require help on the below and much appreciated.
    1. On a Daily Basis, I have to select few records manually from the database separately every time and Paste them in to an excel file and email them. Now I am trying to build a Report using an Access form by entering multiple identifiers (primary key values) separated using comma, so that at the command of a button, a Report should be exported for those values alone. Please suggest.

    2. I want to update the status for selected records by using records selectors in a split form, where I will select few and change the Cheque status combo box from the form header. Please help. Refer to the Image of the Form shared on post No 69 dated 05-28-2015, 10:23 PM.

  14. #74
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    Here is one option for item 1 http://allenbrowne.com/ser-50.html

    For item 2, I just tried to do something like what you describe. I selected records, then clicked a button. The selection was retained only if I used shift and click to select records, dragging mouse down the record selectors didn't work. Code can then loop through the selection and do something with them. Something like this:

    Code:
    Private Sub StatusEdit_Click()
    Dim N As Integer
    Dim intHeight As Integer    'stores value for number of records selected
    Dim intTop As Integer   'stores value for position of the first selected record in recordset
    intHeight = Me.SelHeight
    intTop = Me.SelTop
    With Me.RecordsetClone
    If intHeight < 1 Then
        MsgBox "No records have been selected."""
    Else
        For N = 1 To intHeight
            .AbsolutePosition = intTop - 1    'AbsolutePosition property is 0 based counter so must -1 to get position within the recordset
            .MoveFirst
            While Not .EOF
                'do something with the record, like:
                .Status="something"
                .MoveNext
            Wend
        Next
    End If
    End With
    End Sub
    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 5 of 5 FirstFirst 12345
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Can not import any excel 2010 spreadsheet into access 2010
    By BobsWright in forum Import/Export Data
    Replies: 4
    Last Post: 09-26-2013, 12:44 PM
  2. Replies: 3
    Last Post: 08-02-2013, 03:46 PM
  3. Replies: 2
    Last Post: 12-26-2012, 02:58 PM
  4. Replies: 4
    Last Post: 09-19-2012, 02:07 AM
  5. Exporting 2010 Web Database report to Excel
    By rogstepper in forum Import/Export Data
    Replies: 2
    Last Post: 09-12-2012, 01:52 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