Page 2 of 2 FirstFirst 12
Results 16 to 29 of 29
  1. #16
    menyarito is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2017
    Posts
    16
    http://www.cjoint.com/c/GDwqVouIMI3



    can give you access to my computer via TEAMVIEWER so that you can take a look
    please

  2. #17
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    could you download a copy of your database here?

    Zip it up then use the Go advanced buttons to download it?

  3. #18
    menyarito is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2017
    Posts
    16
    [QUOTE=andy49;355094]could you download a copy of your database here?

    ok,
    Attached Files Attached Files

  4. #19
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    thanks you

  5. #20
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    This is great

    Would you be able to fill the tables with some false data?

    Its throwing up issues otherwise

    Thanks

  6. #21
    menyarito is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2017
    Posts
    16
    andy49

    It must be like that, it's possible?

    http://www.cjoint.com/c/GDwsQhtam13

    Thanks

  7. #22
    menyarito is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2017
    Posts
    16
    Quote Originally Posted by andy49 View Post
    would you be able to fill the tables with some false data?
    yes, of course
    Attached Files Attached Files

  8. #23
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    I disagree with the offered solution. Cross-linking will just cause problems. If house is saved into Clients then don't save client into Houses and vice versa. The combobox RowSource needs to be a query that utilizes both tables.

    SELECT Houses.Maison FROM Houses LEFT JOIN Clients ON Houses.Maison = Clients.House WHERE (((Clients.customerID) Is Null));

    Then will need code to commit record to table and requery the combobox after house is selected.

    Code:
    Private Sub House_Change()
    DoCmd.RunCommand acCmdSaveRecord
    Me.House.Requery
    End Sub
    
    Private Sub House_GotFocus()
    Me.House.Requery
    End Sub
    Is this db to track ownership? Do you really want each client to have only one house? Can't someone own more than one? Can't more than one person be named as owner for same property (joint ownership)?

    Since you are not saving the house ID value into Clients, it is not even needed.
    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. #24
    menyarito is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2017
    Posts
    16
    Hi June 7,
    Quote Originally Posted by June7 View Post
    I disagree with the offered solution. Cross-linking will just cause problems. If house is saved into Clients then don't save client into Houses and vice versa. The combobox RowSource needs to be a query that utilizes both tables.

    SELECT Houses.Maison FROM Houses LEFT JOIN Clients ON Houses.Maison = Clients.House WHERE (((Clients.customerID) Is Null));

    Then will need code to commit record to table and requery the combobox after house is selected.

    Code:
    Private Sub House_Change()
    DoCmd.RunCommand acCmdSaveRecord
    Me.House.Requery
    End Sub
    
    Private Sub House_GotFocus()
    Me.House.Requery
    End Sub
    where add the Code?
    You tried this on the database? if oui, please show me the results

    Thanks
    Attached Files Attached Files

  10. #25
    menyarito is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2017
    Posts
    16
    Is this db to track ownership?
    Yes,
    Do you really want each client to have only one house? Can't someone own more than one?
    every customer can have many house, the important for me if a house selected after does not appear in the list (see attachment)

    Can't more than one person be named as owner for same property (joint ownership)?
    No,
    Attached Thumbnails Attached Thumbnails Plan.jpg  

  11. #26
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Post #15 describes how to add code behind a form.

    The code I show is for the combobox Change and GotFocus events.

    Follow instructions in post #15.

    You can also copy/paste the SQL statement into the comboxbox RowSource property.
    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
    menyarito is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2017
    Posts
    16
    June7 ,

    http://www.cjoint.com/c/GDxdrK7ymmW

    I added everything but it did not work

    can you see my db please

    Thanks in advance for your help
    Attached Files Attached Files

  13. #28
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    You did not change the combobox RowSource property as instructed.
    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. #29
    menyarito is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2017
    Posts
    16
    Quote Originally Posted by June7 View Post
    You did not change the combobox RowSource property as instructed.
    It works

    Thanks a lot June7 you're the best

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 11-26-2016, 05:43 PM
  2. Replies: 6
    Last Post: 02-23-2016, 01:45 PM
  3. Replies: 6
    Last Post: 01-15-2014, 02:56 PM
  4. Replies: 6
    Last Post: 02-24-2011, 03:24 PM
  5. Replies: 1
    Last Post: 09-27-2010, 06:58 AM

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