Results 1 to 9 of 9
  1. #1
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167

    Newbie needs help

    Hi,

    I have a CourseChangeForm form that pulls data from a StudentEnrollmentTable. It is displaying the Instructor ID but I want it to display a concatenated instructor first and last name. Most sources I consult suggest a combobox for the form but I do not want users to change this field; rather I just want the name displayed. The Instructor field on the form is now a text field.

    Thnaks and take care,

    Daryl

  2. #2
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Create a query for the record source for your form based on the StudentEnrollmentTable. Then you can make the name field however you want it to display - First & " " & Last, or Last & ", " & First or whatever.

  3. #3
    bigroo's Avatar
    bigroo is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jan 2012
    Location
    Austin, Texas
    Posts
    101

    Newbie Needs Help

    Daryl,

    You can also use within your query the following as well.

    Employee Name: IIf(IsNull([Last Name]),IIf(IsNull([First Name]),[First Name]),IIf(IsNull([First Name]),[Last Name],[First Name] & " " & [Last Name]))
    Just change Last Name and First Name to your field names.

    Thanks

  4. #4
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167

    Thanks!

    Thanks! That worked just fine.

    Another general question: Can you create more than one form on the same querry. Is it ever necessary and should it be done?

    I just relized I am listed as an advanced beginner; I think that is very generous

    Take care,

    Daryl

  5. #5
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    There may be a time when you use the same query, such as inquiries, reporting different fields for different purposes. Some might call it laziness, I would call it keeping it simple! Less maintenance in the long run.

  6. #6
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Actually (now that I come to think about it), keep your static queries to a minimum. Rather use the Record Source for the forms and create the queries "on the fly".

  7. #7
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167

    Static Querries?

    ...meaning querries that are created and never changed?

  8. #8
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    No, click the three ... next to the record source and create a query that way. It doesn't get saved with a query name and therefore there are less queries in your navigation pane.

  9. #9
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167

    Thanks Again

    Thanks. I learned a lot!

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

Similar Threads

  1. Help - newbie
    By Sorbz62 in forum Database Design
    Replies: 13
    Last Post: 09-29-2011, 01:30 AM
  2. newbie needs help
    By hollyh in forum Queries
    Replies: 1
    Last Post: 08-23-2011, 03:39 PM
  3. I need (newbie) help, please!
    By Over in forum Access
    Replies: 2
    Last Post: 02-05-2011, 10:14 AM
  4. can you help a newbie out
    By jayjayuk in forum Access
    Replies: 1
    Last Post: 10-10-2010, 07:42 PM
  5. Help a newbie
    By g8rnc in forum Access
    Replies: 1
    Last Post: 06-09-2010, 12:58 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