Recent content by ClaraBarton

  1. C

    Form as Form? or String?

    @arnelgp stupid question... set lst = VisibleList(me.name) set lst = VisibleList me.name set lst = VisibleList (popUsedBy) set lst = VisibleList ("popUsedBy") Seriously! nothing compiles
  2. C

    Form as Form? or String?

    Thank you so much!!!
  3. C

    Form as Form? or String?

    way overcomplicating my question. All I'm trying to do is figure which listbox is visible and then grab that for other events. What I'm struggling with is calling the above function. I've figured out I need to make it a string Public Function VisibleList(frm As Form) a string If...
  4. C

    Form as Form? or String?

    The reason I need to specify a specific listbox is because I requery it from another form, I do multiple selections from them, I move items in it. I thought this was the "smart" code, to make one function work for multiple places. Function GetList() On Error GoTo Err_GetList Dim i...
  5. C

    bad bracketing

    "codpiece"? Way more than I needed....
  6. C

    bad bracketing

    Thanks, Doc. I got it. Me.txtAmount = DSum("Amount", "qryAllPurpose", "AccountID = " & ID & strRange) I was trying to do a date range from the table "in" the query and not the actual query.
  7. C

    Form as Form? or String?

    I have a form that has 2 listboxes. Only 1 visible at a time. Since both share many routines I need to know which one is visible. Hence a little public routing that checks it. Public Function VisibleList(frm As Form) Dim ListView As ListBox If frm.lstName.Visible = True...
  8. C

    bad bracketing

    Well you can't throw a field in there without telling it where it comes from.. Even I know that much. The table is not part of my list box. I went back and removed all my brackets and it's working a charm. Thank you all.
  9. C

    bad bracketing

    using the string "tblTransaction.Ckdate" has worked for a long time but I need it for a combination of tables so I pulled together a generic query. I guess I've been away from it for awhile and it is not cooperating with my logic.
  10. C

    bad bracketing

    Function GetDateRange(DateField As String, RangeType As Integer) As String 'Last Month Dim firstmonth As Date Dim lastmonth As Date firstmonth = DateSerial(Year(Date), Month(Date), 0) lastmonth = DateSerial(Year(firstmonth), Month(firstmonth) - 12, 0) 'Quarterly Dim begMo As Integer Dim...
  11. C

    bad bracketing

    a vba call. It goes in a where string for a listbox row source.
  12. C

    bad bracketing

    I have a function that requires a field name as a string variable. Function GetDateRange(DateField As String, RangeType As Integer) As String I created an allpurpose query that contains a field ckDate. If I create a variable string "qryAllPurpose.CkDate" it returns [qryAllPurpose.CkDate]...
  13. C

    filter combo

    Nevermind! figured it out. I was using the wrong function. :confused:
  14. C

    filter combo

    ok ok I'll fix the dates. Not the problem I'm having though. My question is about the GetSql_filter and the dates are not run through that.
  15. C

    filter combo

    @MajP I'm struggling with the GetSQL_Filter. Everything was working well until I added in the filter combos. I've tried to work through the function but everytime I edit it I create a mess. I get this with the below code: (fAmount and fMemo are filter combos) I want this: If Nz(Me.SAmount...
Back
Top Bottom