Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Vb Statement quit working

Status
Not open for further replies.

billheath

Technical User
Mar 17, 2000
299
US
I am perplexed but sure I am Doing something wrong!
The following code was working but now I get the error .. "Object doesn't support this property or method."

Private Sub Buy_BeforeUpdate(Cancel As Integer)
If Me![BUY] < Forms.Stock_Data![Lowest] Then
Forms.Stock_Data![Lowest] = Me![BUY]
End If
If Me![BUY] > Forms.Stock_Data![Highest] Then
Forms.Stock_Data![Highest] = Me![BUY]
End If


End Sub

If I make a change in the first form, I want to be able to replace a value in another table. Please help. I hope this makes sense! Bill
 
I'd replace this:
Forms.Stock_Data
with this:
Forms!Stock_Data

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top