Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    mooreb55020 is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jun 2018
    Location
    Minnesota
    Posts
    17
    so I didn't test this until i got to adding more purchased good into the system and unfortunately it's adding everything into it as 3000001 and the last product line i have is 3000016 for that line. I looked through the code it's the same as the one you added above. the only thing i can imagine is that it doesn't start with "0" or it can't find the reference. I'm not sure.

  2. #17
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,706
    See attached.
    Had to add query qProdLine. Code behind form is based on the query instead of tProducts. Query pulls all fields from tProducts and just Code from tblProductLines.
    Had to change data type of Code in tProductLines table from short text to number.
    Changed VBA behind form a bit to use the new query and productline Code field.

    This confusion might not have happened if the field name (ProductLine) in tProducts had been named ProductLine_FK. This would have instantly identified the field as a foreign key pointing to the ProductLine table and not an application data field.
    Last edited by davegri; 10-08-2018 at 09:49 PM. Reason: exp

  3. #18
    mooreb55020 is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jun 2018
    Location
    Minnesota
    Posts
    17
    Thanks, I will keep that in mind as i build more of this project in access. Again, Never used it before so learning all the tricks with it is coming from youtube, udemy and this forum. I'm sure i'll be posting a ton of questions about Access as i go as well and you all have been a tremendous help with this topic!

  4. #19
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,706
    I'm sure i'll be posting a ton of questions about Access as i go
    The good folks here are always willing to help with almost anything. Good luck with the project!

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

Similar Threads

  1. Replies: 5
    Last Post: 03-29-2017, 11:22 AM
  2. Replies: 3
    Last Post: 04-23-2016, 01:45 PM
  3. Replies: 8
    Last Post: 12-29-2014, 08:13 AM
  4. Adding the Date & Time record added
    By jo15765 in forum Access
    Replies: 2
    Last Post: 11-26-2010, 11:31 PM
  5. Search result links adding extra info
    By Vbcw in forum Programming
    Replies: 0
    Last Post: 12-19-2008, 12:19 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