Search results

  1. C

    Cannot Instantiate child recordset

    Sorry. Still doesn't work.
  2. C

    Cannot Instantiate child recordset

    I am trying to open a child recordset but keep getting Error 424 "Object required". Dim rstEmails As DAO.Recordset2, DBS As DAO.Database, rstFile As DAO.Recordset2 Set DBS = CurrentDb Set rstEmails = DBS.OpenRecordset("Beldenemails") Set rstFile = rstEmails.Fields("email").Value 'Error...
  3. C

    Finding a Record

    Strange as this may sound, the ADO method "Clone" returns a DAO recordset. You have to use FindFirst instead of Find.
  4. C

    Finding a Record

    There is no Recordsetclone property in ADO. You have to use the Clone method instead: Dim rst As Object Set rst = Me.Recordset.Clone
  5. C

    Select Case with Wildcard

    You can't use the Like operator in a Select Case statement. Try this: If InStr(strType, "Arterial") > 0 Then strType = "Arterial" ElseIf InStr(strType, "parkway") > 0 Then strType = "Parkway" ElseIf InStr(strType, "expressway") > 0 Then strType = "Expressway" End If
  6. C

    Change column names to first row's data?

    Access makes a guess as to data type by looking at the first 5 or 10 records. What I would do is add another now to the spreadsheet, just under the headings, and put an "x" in each of the used columns. Then, when you import into Access, all the fields will be text and your field names will be...
  7. C

    Querying a linked flatfile

    You can create a query that returns a unique list of all student IDs that have term addresses. Using the ID field, join that query to the full list to obtain a unique list of IDs that have no term address. Then you can use a join query to put both lists together.
  8. C

    Problem with date sorting

    Just occured to me. In your screen shot you have two other entries in the grouping and sorting dialog box between the two entries for your date. It's sorting the header/footer by the month, then the detail section by the other two fields first then, lastly, by the date. Move the second date...
  9. C

    Problem with date sorting

    Just occured to me. In your screen shot you have two other entries in the grouping and sorting dialog box between the two entries for your date. It's sorting the header/footer by the month, then the detail section by the other two fields first then, lastly, by the date. Move the second date...
  10. C

    Problem with date sorting

    It looks like it should work. If you want to send me the database - table/s (structure only), query and report I will take a look at it: c_pod@hotmail.com
  11. C

    Problem with date sorting

    You need to list your date field twice in the Grouping and Sorting dialog box. Once to establish your group header/footer and once to set the sort order.
  12. C

    Changing TEXT field to DATE field.

    You could just add a new date field to your table and then, in a query, use something like this to update the new field: DateValue(Left([textdatefieldname],3) & "01/" & Right([textdatefieldname],2))
  13. C

    FindRecord ""

    Try this: Me.Recordset.FindFirst "fldLastName Is Null"
  14. C

    copy textbox input to excel

    You can use a little Visual Basic to put the value into another textbox on your form and then call for the value in that textbox in your query. Add another textbox to your form (It doen't have to be visable. You can turn the visable property to false in the textbox's property list). In...
  15. C

    copy textbox input to excel

    Just use an expression like this in your maketable query (filling in the name of the form that has the text boxes and the name of the textbox were indicated): : [forms]![NameofYourForm]![NameofYourTextBox].[value]
  16. C

    this is my last resort

    If you give me your email address I can send to a small database to get you started.
  17. C

    DLookup with multiple criteria

    =DLookUp("[rap_planned_time].[calculated_time]";"[rap_planned_time]";"[rap_planned_time].[customer_id]= [customer_id]") What you are telling Access to do here is find a customer_id that is equal to the string "[customer_id]". Not what you want. The variable expression in the criteria must...
  18. C

    "Can't Reference a control's Property or Method Unless The Control Has the Focus

    Try this: if isnull(me.rec_qty) then me.rec_qty=0
  19. C

    "Can't Reference a control's Property or Method Unless The Control Has the Focus

    Just remove the property references: if me.rec_qty="" then me.rec_qty=0
  20. C

    Does a file exist

    OK. You can use something like this: Dim intFileCount as integer, fs Set fs = Application.FileSearch With fs .LookIn = "C:\yourdirectorypath" .FileName = "yourfilename" intFileCount = .Execute End With If intFilecount is greater than 0 then the file exists.
Top Bottom