• Converting to Subforms (2000)

    Author
    Topic
    #392553

    I recently made dramatic improvements to order entry and order history forms by changing over to a subform. This was accomplished almost entirely due to input from Hans V. (see post 287150 ). What I neglected to inform Hans of, and just discovered myself, is that there is a continuous form (showing multiple orders) that relied on the old multiple cell entry format. Those fields are no longer available because they have been “compressed” into a single field with a SeqNo control in the SQL (Union Query).

    Load Board (the continuous form in question – old format attached) is based on tblMaster, while the needed fields are now in tblShCon. These two tables are joined by ProNo (see attachement). I believe I could create a text box on the Load Board ([tblShCon]![ShConCity1]![?]) but don’t get how I could retrieve the SeqNo. The same would hold true for ShConDate, as to the SeqNo.

    The Load Board is a critical function for dispatch. Any help greatly appreciated.

    Viewing 1 reply thread
    Author
    Replies
    • #705373

      You can create a query, or rather a series of queries that reverses the effect of “compressing” the data. The following is not a complete recipe, you will have to adapt it to your situation instead of copying it literally.

      1. Create a query qryShCon1 based on tblShCon that returns ProNo, ShConCity1 and ShConDate and perhaps other fields for SeqNo=1:

      SELECT ProNo, ShConcity1, ShConDate FROM tblShCon WHERE SeqNo = 1

      2. Create a query qryShCon2 based on tblShCon that returns ProNo, ShConCity1 and ShConDate and perhaps other fields for SeqNo=2:

      SELECT ProNo, ShConcity1, ShConDate FROM tblShCon WHERE SeqNo = 2

      3. Create a query based on tblMaster, qryShcon1 and qryShCon2.
      Create a join from tblMaster to qryShCon1 on ProNo.
      Double click the join and make it an outer join that returns ALL records from tblMaster.
      Repeat this for tblMaster and qryShCon2.
      Add the fields you need from each of the three to the query grid, and provide aliases to distinguish the city and date fields. For instance, prefix the field ShConCity1 from qryShCon2 with ShConCity2:

      • #705531

        Hans:

        Finally! Took me a while to work through it, but I did manage to get what I want – and actually understand it all. Thanks for not handing it all to me on a silver platter. I had actually worked out something similar to this, but couldn’t figure out how to join it all together. Great learning experiance, thanks again!

        • #705547

          Just wanted to add one last comment for anyone watching this thread (and especially if you were on the thread referenced). While the Search function is down I have been saving threads to CD so I can locate those of interest (some are quite lengthy). Just go to the top right corner of the thread and selecte Save/Print Thread, you’ll get a new browser window. Go to File | Save As and select the destination (I burn to CD). Sure saves a lot of paper and you’ll have all the thread ref# handy when the search function returns.

        • #705548

          Just wanted to add one last comment for anyone watching this thread (and especially if you were on the thread referenced). While the Search function is down I have been saving threads to CD so I can locate those of interest (some are quite lengthy). Just go to the top right corner of the thread and selecte Save/Print Thread, you’ll get a new browser window. Go to File | Save As and select the destination (I burn to CD). Sure saves a lot of paper and you’ll have all the thread ref# handy when the search function returns.

      • #705532

        Hans:

        Finally! Took me a while to work through it, but I did manage to get what I want – and actually understand it all. Thanks for not handing it all to me on a silver platter. I had actually worked out something similar to this, but couldn’t figure out how to join it all together. Great learning experiance, thanks again!

    • #705374

      You can create a query, or rather a series of queries that reverses the effect of “compressing” the data. The following is not a complete recipe, you will have to adapt it to your situation instead of copying it literally.

      1. Create a query qryShCon1 based on tblShCon that returns ProNo, ShConCity1 and ShConDate and perhaps other fields for SeqNo=1:

      SELECT ProNo, ShConcity1, ShConDate FROM tblShCon WHERE SeqNo = 1

      2. Create a query qryShCon2 based on tblShCon that returns ProNo, ShConCity1 and ShConDate and perhaps other fields for SeqNo=2:

      SELECT ProNo, ShConcity1, ShConDate FROM tblShCon WHERE SeqNo = 2

      3. Create a query based on tblMaster, qryShcon1 and qryShCon2.
      Create a join from tblMaster to qryShCon1 on ProNo.
      Double click the join and make it an outer join that returns ALL records from tblMaster.
      Repeat this for tblMaster and qryShCon2.
      Add the fields you need from each of the three to the query grid, and provide aliases to distinguish the city and date fields. For instance, prefix the field ShConCity1 from qryShCon2 with ShConCity2:

    Viewing 1 reply thread
    Reply To: Converting to Subforms (2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: