input a field from a table and get all information from another table

Unixaix

New member
Local time
Today, 14:17
Joined
Apr 7, 2019
Messages
6
How to get tblStudent table record data by input studentCode
There are two tables:

tblStudent:
StudentID autonumber
StudentCode Number ; lookup from StudentCode Table
StudentName short Text
StudentAddress short Text

tblStudentCode:
CodeID autonumber
StudentCode short text

Now I want to design a query or form:
get the studentCode from tblStudent, and display studentCode,StudentName, StudentAddress

Please help, I am a new programmer.
Thanks!
 
Last edited:
Hi. Will this work?
Code:
SELECT * FROM tblStudent WHERE StudentCode=[Enter Student Code]
 
Hi. Will this work?
Code:
SELECT * FROM tblStudent WHERE StudentCode=[Enter Student Code]
What I want to do is:
use lookup display studentCode, then I select a StudentCode,
and get the match student information and display in the screen.
 
Hi. Will this work?
Code:
SELECT * FROM tblStudent WHERE StudentCode=[Enter Student Code]
What I want to do is:
use lookup display studentCode, then I select a StudentCode,
and get the match student information and display in the screen.
 
What I want to do is:
use lookup display studentCode, then I select a StudentCode,
and get the match student information and display in the screen.
Hi. There's a lot of ways to do this. I am not sure what you have in mind. You could take a look at some demos and see if there's one you could use or post a mockup image, so we can help guide you on how to build it.
 

Users who are viewing this thread

Back
Top Bottom