Results 1 to 4 of 4
  1. #1
    Cyberice is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    15

    Post What report would suit best to display information?

    Hi all,

    I have a little perplexing problem. I have a big database with three tables in. I have built a simple query so that when you enter a post code it so the results of address concatenated also depending on the number in extra collection information {yes} or {no} that too gets displayed.
    I can produce a report no problem but I was wondering from the query could I produce just a list of the address concatenated i.e. from the postcode {WF8 2AR} then select one line i.e number 7 then show the address plus Field 2 {and or} Field 3 located in table collection day information and table extra collection information, then a sample return to the post code form.
    I am on YouTube at mo, so trying to build the form or report myself. I hope this make some kind of sense.
    Thanks in advice,

    Post Code ID WF8 2AR WF7 7PE

    Mick.
    Attached Files Attached Files

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    First of all your Optimized_Calendar_Pattern in your table Main Dataset should be storing the ID from Collection Day Information, NOT the text value in Field1
    Similarly your field Extra Collection Information should be storing the ID from the table Extra Collection Information, NOT the text value of field 1

    You will encounter no end of problems if you continue with this design as is.

    Secondly, you are storing a calculated value (at least one) in 'Address_Concantenated' in your table Main Dataset, do not store calculated values, they can be figured any time you run a query or report and just waste space in your table.

    Third, do not use spaces or other special characters in any of your database object names (table names, field names, controls, forms, reports, etc) they will cause you problems as you progress with MS access.

    Lastly, you can concantenate the fields any way you want in a query so for instance if you wanted the Address_1, Street_Name then Field1 from CollectionDayInformation (if it exists) then field1 from ExtraCollectionInformation if it exists with a formula like

    Code:
    NewConcant: [Address_1] & " " & [Street_Name] & " " & iif(isnull([Collection Day Information]![field1]), "", [Collection Day Information]![field1]) & " " & iif(isnull([Extra Collection Information]![field1]), "", [Extra Collection Information]![field1])

  3. #3
    Cyberice is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    15
    Hi there,

    Thanks for the advice but I am only a novice here.... Would I be able to use the code to place it in a form? This is what I need to build. I don't mind doing it and trying to learn how to do it, but I need a starting point.

    Again thanks,

    Mick.

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    You can place it wherever you want, where you calculate it is up to you, if it's in a query driving the form that's probably the easiest thing, but you can just as easily have it as a formula on the form itself in the CONTROL SOURCE property.

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

Similar Threads

  1. Replies: 4
    Last Post: 10-29-2014, 12:51 PM
  2. Buttons to display information in a field
    By Whiskeyz in forum Forms
    Replies: 3
    Last Post: 09-03-2014, 01:46 AM
  3. Replies: 3
    Last Post: 05-02-2014, 09:27 AM
  4. Replies: 1
    Last Post: 03-24-2011, 07:09 AM
  5. Need help with database to display vehicle information
    By jlmnjem in forum Database Design
    Replies: 1
    Last Post: 07-25-2006, 08:48 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