right ... label name and textbox name
If you have only 2 or 3 labels, write a line for each; if many, you could use TAG property and write a little SUB to change all those with a given TAG
Bob
I do this ...
In the OnCurrent event of the form and in the AfterUpdate event of the textbox, put
Me![Label].BackColor = IIf(IsNull(Me![textbox]), 255, 16777215)
Bob
I think this is what you are looking for--
In form Design View, click on the tab with the listbox (it should show up in the property sheet as a 'Page'). In its OnClick event procedure, put
me!WhateverIsTheListboxName.SetFocus
me!WhateverIsTheListboxName.Requery
Bob
...and what I'm trying to do is post in my sleep. Here's the rest of it.
Put combo270 in the header of the form that you want to use to edit your data. Click on its EVENTS tab and put [Event Procedure] on the AfterUpdate line and click the button with 3 dots. Paste in the sample code that...
I think you are trying to do this --
Private Sub combo270_AfterUpdate()
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[propertyNo] = " & Chr(34) & Me![combo270] & Chr(34)
Me.Bookmark = rs.Bookmark
Set rs = Nothing
End Sub
Bob
Mailing labels will likely use Trim()... each line would be a TextBox with a Control Source like:
=Trim([Firstname] & " " & [Lastname])
If you are missing the arguments -- the stuff in () --it would be treated as a Parameter...
walkinman17
This drove me crazy when I was just starting to build apps.
The property sheets kept opening up while I (or my humorless Users) was using the app.
You stop this by setting ALLOW DESIGN CHANGES to "Design View Only".
walkinman17
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.