By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,955 Members | 1,793 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,955 IT Pros & Developers. It's quick & easy.

Repeat same value in the text box

P: n/a
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_EquipmentChronology.Equipment1 FROM
tbl_EquipmentChronology INNER JOIN tbl_events ON
tbl_events.TicketNum=tbl_EquipmentChronology.Ticke tNum where
tbl_events.TicketNum=" &
Forms!tbl_PPVResearch_Edit!frm_Events!TicketNum & " and
tbl_events.PPVVOD_Outlet=tbl_EquipmentChronology.O utlet"
Set rst = CurrentDb.OpenRecordset(qry)
rst.MoveFirst
Do While Not rst.EOF
Forms!tbl_PPVResearch_Edit!frm_Events!text2 = rst!Equipment1
rst.MoveNext
Loop

Aug 15 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Any reason you can't bind the subform to the query?

Aug 15 '06 #2

P: n/a
How to i bind the subform to the quer?
Thanks,

pi********@hotmail.com wrote:
Any reason you can't bind the subform to the query?
Aug 15 '06 #3

P: n/a

Eric wrote:
How to i bind the subform to the quer?
Thanks,

pi********@hotmail.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.

Aug 15 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.