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

Value shows only in debug mode in form

P: n/a
When i run the form in the debugger mode it shows the value but when i
will not run the form in the debugger form it shows no value in the
form

Me.LastKnownEvent.Value = Me.frm_Events.Form!txtMaxDateSub

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


P: n/a
Hi Eric,

Can you give more detail?

Nick

Eric wrote:
When i run the form in the debugger mode it shows the value but when i
will not run the form in the debugger form it shows no value in the
form

Me.LastKnownEvent.Value = Me.frm_Events.Form!txtMaxDateSub
Aug 15 '06 #2

P: n/a
Thanks it works. My only problem left is a value which i want to
display in a textbox. I try to to set the value of a text box through
code and it will always display the same value in every record. I think
i cant display a recordset in a text box. What way i use so that i can
display my values in the text box.

Private Sub Form_Open(Cancel As Integer)
Dim qry As String, rst As Object
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
End Sub

Aug 15 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.