Results 1 to 9 of 9
  1. #1
    green369 is offline Novice
    Windows 10 Office 365
    Join Date
    Jul 2020
    Posts
    5

    sequential numbers upto number based on field value number

    HI

    friends please help me i having a table in which customer id, customer first name, customer last name, address, phone number, zip code, no of houses he own (number type) fields are there,

    i designed a form in which a combo box is there, based on the field value no.of houses he own combobox should be populated with values 1,2,3,4,5 (upto the number in the field) based on the customer.



    can any one help me to sort this issue.

    Please

    thanks in advance

    Green369
    Attached Files Attached Files

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    Quote Originally Posted by green369 View Post
    HI

    friends please help me i having a table in which customer id, customer first name, customer last name, address, phone number, zip code, no of houses he own (number type) fields are there,

    i designed a form in which a combo box is there, based on the field value no.of houses he own combobox should be populated with values 1,2,3,4,5 (upto the number in the field) based on the customer.

    can any one help me to sort this issue.

    Please

    thanks in advance

    Green369
    Why do you need a combo box? Why not use a textbox to enter/show the number?
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Ditto. What purpose does this combobox serve?

    A database with only one table? Where is table that stores data about all these houses?
    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.

  4. #4
    green369 is offline Novice
    Windows 10 Office 365
    Join Date
    Jul 2020
    Posts
    5
    HI

    june7

    i am new to database design actually my concept is a owner will owns a house in which he is having rooms which can be offered to tenents on rent basis i want a form in which owner details has to be displayed and also room number of that owner house which was given on rent to the tenent .

    on this basis i need can you help me to figure this out

    thanks in advance

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    You need to identify data entities and relationships. Better get this nailed down before even thinking about the interface design.

    In addition to Houses table, need a table for Reservations. And since you said owner could have multiple houses, need a table for People. Then if there could be multiple rooms for rent in each house, a table for Rooms.

    Have you studied any tutorials on database concepts? Or even Access functionality?
    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
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  7. #7
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,821
    HI WGM

    They are 2 different database's

  8. #8
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    Quote Originally Posted by mike60smart View Post
    HI WGM

    They are 2 different database's
    So what Mike.?
    If you have two different cars, do you have to ask how you put fuel in each one? The logic is the same?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  9. #9
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Here's a sample model that may offer some insight on tables and relationships needed to support your processes. Ignore the Integer(10) info, that's a default from the software I am using. I didn't shrink the graphic to hide the numbers. I did shrink the other entities.

    Click image for larger version. 

Name:	DraftOwnerHouseRoomTenant.png 
Views:	16 
Size:	49.8 KB 
ID:	48333

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 10
    Last Post: 08-02-2021, 08:17 AM
  2. Replies: 11
    Last Post: 04-19-2019, 08:16 AM
  3. Sequential Number by group in a field
    By bennyhana88 in forum Access
    Replies: 16
    Last Post: 07-22-2015, 10:44 AM
  4. Replies: 4
    Last Post: 07-27-2011, 12:42 PM
  5. Suggest number based on already used numbers
    By Patience in forum Access
    Replies: 3
    Last Post: 06-16-2010, 04:26 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