Need some help on Query

harky

Active Member
Joined
Apr 8, 2010
Messages
405
Office Version
  1. 2021
  2. 2019
Platform
  1. Windows
Hi,
I had 2 table, one contact student detail and another contain enrollment

tbl students contain
Student ID
Name
Address


Tbl enrollment
Student ID Subject
001 Maths
001 Science
002 English
002 Science

On my Query
I know how to do the linkup but is the way i want it to display like this in datasheet view? the main thing is the subject to display. need any code?
Student ID | Name | Subject(1) | Subject(2)

normal it will display like
Student ID | Name | Subject
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
I would encourage you not to display this way. For instance, it is very hard to know if there will be a need for Subject (1), Subject (2), Subject (3) ... and on and on (i.e., how many subjects ??, and how many columns ??) .

In general, you would never build forms, reports, or (certainly) tables in this way, and if there is a good reason to do so you can probably also find another good reason not to do so!
 
Upvote 0
hmm... thanks bro!~

I would encourage you not to display this way. For instance, it is very hard to know if there will be a need for Subject (1), Subject (2), Subject (3) ... and on and on (i.e., how many subjects ??, and how many columns ??) .

In general, you would never build forms, reports, or (certainly) tables in this way, and if there is a good reason to do so you can probably also find another good reason not to do so!
 
Upvote 0

Forum statistics

Threads
1,221,687
Messages
6,161,287
Members
451,695
Latest member
Doug Mize 1024

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top