hockeylvr
Technical User
- Nov 26, 2002
- 140
I cannot figure out what I have done wrong in this code.
I have a field "GPBuyerProjectID" in my query that my form is based on. I needed to simple change the name of this field from CCM Buyer to GP Buyer and I have changed it in every query/table I need to.
I have 5 other combo boxes just like this with different names and they all work perfectly, but, for some reason I am getting the message
"Compile Error" "Method or Data Member Not Found" on this one only.
I have checked my queries, my field list, relationships and it all matches up. The field is in the field list for the query on the form so I don't see how it can't find it.
When I go into VBA and type "Me." the list of available field names come up but "GPBuyerProjectID" and "GPBuyer" are not in it.
I have tried compact and repair with no luck and my deadline is past!
Does anyone know what might be causing this?
Private Sub GPBuyerName_BeforeUpdate(Cancel As Integer)
Me.GPBuyerProjectID = Me.ID
Me.GPBuyer = "GP Buyer"
End Sub
Thanks for your help!
I have a field "GPBuyerProjectID" in my query that my form is based on. I needed to simple change the name of this field from CCM Buyer to GP Buyer and I have changed it in every query/table I need to.
I have 5 other combo boxes just like this with different names and they all work perfectly, but, for some reason I am getting the message
"Compile Error" "Method or Data Member Not Found" on this one only.
I have checked my queries, my field list, relationships and it all matches up. The field is in the field list for the query on the form so I don't see how it can't find it.
When I go into VBA and type "Me." the list of available field names come up but "GPBuyerProjectID" and "GPBuyer" are not in it.
I have tried compact and repair with no luck and my deadline is past!
Does anyone know what might be causing this?
Private Sub GPBuyerName_BeforeUpdate(Cancel As Integer)
Me.GPBuyerProjectID = Me.ID
Me.GPBuyer = "GP Buyer"
End Sub
Thanks for your help!