Results 1 to 2 of 2
  1. #1
    MitjaHD is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2019
    Posts
    1

    Insert genre of the movie and autmatically insert ID of genre

    Sorry I'm new to databases and Access but I will try to explain the problem. I have tables Movies and MovieGenres and in MovieGenres there are 5 generes with IDs and name of genre. I want to insert name of the genre in Movies form and then autmatically detec which ID this genre has, so I don't have to type it two times. Tables are connected with ID_genre (ID_zvrsti in my language).


    Click image for larger version. 

Name:	Screenshot_1.png 
Views:	10 
Size:	4.9 KB 
ID:	38383
    Film = Movie
    Zvrst = Genre

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,409
    in a form for your Film table, use a combobox for the ID_zvrsti field with a rowsource of

    SELECT ID_zvrsti, Ime_zvrsti
    FROM ZVRST
    ORDER BY Ime_zvrsti

    then in the properties, column widths, enter 0 (which will hide the first column)

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

Similar Threads

  1. Replies: 7
    Last Post: 05-10-2019, 10:40 PM
  2. Replies: 1
    Last Post: 08-29-2016, 07:50 PM
  3. Replies: 4
    Last Post: 01-19-2016, 05:39 PM
  4. Replies: 3
    Last Post: 05-27-2015, 01:04 PM
  5. INSERT query: insert new data only
    By drh in forum Access
    Replies: 2
    Last Post: 04-04-2014, 05:31 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