Need some help on Query

harky

Active Member
Joined
Apr 8, 2010
Messages
411
Office Version
  1. 365
  2. 2024
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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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,225,608
Messages
6,185,963
Members
453,333
Latest member
BioCoder84

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