Please decipher this

T

TKM

Could someone help me with this.
I have taken over a database which has twist and turns everywhere. This
seems basic but want to check with the pros (you).
I have a button labeled Add New Item has the code
Private Sub cmdAddNewClosing_Click()
addNewItem ("CLOSING")
End Sub

It as far as I can tell adds an item where you can select from?
You can select from a subform that has multip tabs if you are on that
paticular tab
code for that tab?
Case "BorrowerInformation":
filter_type = Nz(Me.cboBorrowerFilter.Value, "")
Me.subUWBorrowerInfo.Form.Filter = "GroupName='" &
Me.txtBorrowerFilter.Value & "'" & GetFilterType(Me.cboBorrowerFilter.Value)
Me.subUWBorrowerInfo.Form.FilterOn = True
Me.subUWBorrowerInfo.Form.Requery

End Select

'Set all pages to filter the same
Me.cboBorrowerFilter.Value = filter_type

Can some one tell me if I am right at what this does?
 
L

Larry Linson

It appears to execute a Sub Procedure named addNewItem, passing the argument
"CLOSING". As I have no idea what your data is, nor what "adding an item"
means in your environment, nor what a partial SELECT CASE statement coded as
you show would be expected to do nor the situation in which it is used, I
can't be any more specific.

Larry Linson
Microsoft Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top