whats this simple code saying/doing? need translation please

Roo Australia
10-01-2009, 11:05 AM
:confused: I'm a novice when it comes to VBA. I have been trained in C++ and SQL but I haven't used that in almost a decade. Can anyone tell me please, what the following code is doing/saying?
"Me.ICF_WA_ID = setICF_WA_ID_Site(Me.SiteCode, Me.ICF_WA_ID)
Me.SiteCode = getICFWA_SiteCode(Me.ICF_WA_ID)"

taken from the sub:
Private Sub SiteCode_AfterUpdate()
On Error GoTo Done
Me.ICF_WA_ID = setICF_WA_ID_Site(Me.SiteCode, Me.ICF_WA_ID)
Me.SiteCode = getICFWA_SiteCode(Me.ICF_WA_ID)
Me.Refresh
Done:
End Sub

Iceplug
10-01-2009, 01:27 PM
That code calls two functions that you did not post the code for... so I can only surmise. Does the code work?

The code would be in a class that has at least the following members:
ICF_WA_ID 'I don't know what that acronym stands for
SiteCode

There's also two functions available
setICF_WA_ID_Site takes SiteCode and ICF_WA_ID
getICFWA_SiteCode takes a ICF_WA_ID

Now the functions themselves do something, but do you have the code for those functions available (Right-click on it and go to Definition)?
If it is within some sort of addin, which addin is it?
If it gives you an error because the function doesn't exist, you need to find the correct addin for it.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum