Repeat same value in the text box

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Eric

    #1

    Repeat same value in the text box

    My query works fine. I check it in debugger it gives me the correct
    value. But the textbox which i create in the form is not bound with the
    table. I dont know it needs to bound or not as i need only a textbox
    for display. In this text box it shows the last value of the recordset
    and repeat it in the subform. I dont know how to i fix this problem.

    qry = "SELECT tbl_EquipmentCh ronology.Equipm ent1 FROM
    tbl_EquipmentCh ronology INNER JOIN tbl_events ON
    tbl_events.Tick etNum=tbl_Equip mentChronology. TicketNum where
    tbl_events.Tick etNum=" &
    Forms!tbl_PPVRe search_Edit!frm _Events!TicketN um & " and
    tbl_events.PPVV OD_Outlet=tbl_E quipmentChronol ogy.Outlet"
    Set rst = CurrentDb.OpenR ecordset(qry)
    rst.MoveFirst
    Do While Not rst.EOF
    Forms!tbl_PPVRe search_Edit!frm _Events!text2 = rst!Equipment1
    rst.MoveNext
    Loop

  • pietlinden@hotmail.com

    #2
    Re: Repeat same value in the text box

    Any reason you can't bind the subform to the query?

    Comment

    • Eric

      #3
      Repeat same value in the text box

      How to i bind the subform to the quer?
      Thanks,

      pietlinden@hotm ail.com wrote:
      Any reason you can't bind the subform to the query?

      Comment

      • pietlinden@hotmail.com

        #4
        Re: Repeat same value in the text box


        Eric wrote:
        How to i bind the subform to the quer?
        Thanks,
        >
        pietlinden@hotm ail.com wrote:
        Any reason you can't bind the subform to the query?
        this is a joke, right?
        open the form in design view. View-->Properties-->RecordSource .
        Change to the query of your choice. Or write your own.

        Might be time to sit down with a Sybex/Que book.

        Comment

        Working...