Datasheet or Subform?

pedroghuk

Board Regular
Joined
Nov 27, 2008
Messages
52
First visit to Access forum on this site!<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
<o:p></o:p>
I use Access XP version.<o:p></o:p>
<o:p></o:p>
I have created a FormA whose record source table is TableA.<o:p></o:p>
<o:p></o:p>
Within the FormA I have a field labelled 'Person' whose record source is 'Name' in TableA.<o:p></o:p>
<o:p></o:p>
'Name' has a text data type. Within the Field Properties of 'Name', in the Lookup tab I have:<o:p></o:p>
<o:p></o:p>
Display Control: Combo Box<o:p></o:p>
Row Source Type: Table/Query<o:p></o:p>
Row Source: tblName<o:p></o:p>
Bound Column and Column Count = 1.<o:p></o:p>
<o:p></o:p>
{In other words I have created a small lookup table (tblName) of names, linked to the 'Name' field in TableA}.<o:p></o:p>
<o:p></o:p>
My query is how do I get the end Users to select and display on FormA more than one Person?<o:p></o:p>
<o:p></o:p>
Each event can be associated to two or more Persons. I want the end User to select Person 1 then Person 2 and so on and the selected Persons to be displayed in a datasheet view on FormA or do I want to show the chosen persons in a Subform.<o:p></o:p>
<o:p></o:p>
I have seen this done but cannot work out how it was achieved.<o:p></o:p>
<o:p></o:p>
Any assistance will be gratefully received!<o:p></o:p>
<o:p></o:p>
Regards.<o:p></o:p>
<o:p></o:p>
<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:eek:ffice:smarttags" /><st1:place w:st="on"><st1:City w:st="on">Gary</st1:City></st1:place><o:p></o:p>
<o:p> </o:p>
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Sir: Are you trying to run a query that aks: give all the names like smith?

If so your query should have a like clause in the code:

"%smi%"

I can do this in sql

SELECT
userid
lastname

from sometable

Where sometable.lastname is Like %name%

order by lastname

end query
 
Upvote 0
Thanks for your reply.

But no. I simply want the User to select a Person from a list and the person's name to be displayed on the form. I then want them to select another Person and this name to also be displayed on the form. I don't want to include separate fields for Person 1, Person 2 , Person 3 etc.
I would like to see all Persons selected in a datasheet or subform within FormA.
Hope this make sense.

Gary
 
Upvote 0

Forum statistics

Threads
1,206,921
Messages
6,075,590
Members
446,147
Latest member
homedecortips

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