Search results

  1. T

    copying table data within same table

    You can use an Update query to help this out. UPDATE list SET omit12 = sendto; But why do you want to duplicate this? It's not recommended to store repeated info in both fields. :)
  2. T

    Problem with Date Parameters in Recordset

    What error message did you get? You might use ' instead of " in the SQL statement. Something like this. SELECT DatePart('ww',Date()) AS WeekNum; :)
  3. T

    SaveSetting and GetSetting - How?

    Just follow the example step by step and you'll understand soon. There are lots of code involved. Just copy and paste in Access. Feel free to discuss more. :)
  4. T

    SaveSetting and GetSetting - How?

    To me, GetSetting/SaveSetting are limited. I perfor to do this by using API functions. Check this http://support.microsoft.com/default.aspx?scid=kb;en-us;Q145679 out. Hope not to confuse you even more. :)
  5. T

    removing subform filters

    You have to put this line too. forms("main_form")("sub_form").form.filteron = FALSE
  6. T

    Delete Tables in External Database

    Try this out. ... Dim tdf As Object folder = Application.CurrentProject.Path Set db = OpenDatabase(folder& "\RI Account.mdb") For Each tdf In db.TableDefs If Left(tdf.Name, 4) <> "MSys" Then db.TableDefs.Delete tdf.Name End If Next tdf ... :)
  7. T

    Function not Available - 3075

    I always use late binding style coding to avoid the References problem. Dim dbs As Object, rst As Object Set dbs = CurrentDb Set rst = dbs.OpenRecordset(...) :)
  8. T

    Delete Tables in External Database

    Change this line from DoCmd.DeleteObject acTable, db.TableDefs(i).Name to db.TableDefs.Delete db.TableDefs(i).Name and make sure to delete all relationships before doing this. :)
  9. T

    to output Stored Proc/View result to xls via VBA code

    A Microsoft Access project (.adp) is an Access data file that provides efficient, native-mode access to a Microsoft SQL Server database through the OLE DB component architecture. Using an Access project, you can create a client/server application as easily as a file server application. In your...
  10. T

    Transfer data between tables - problem with unique ID

    I think you have to add a Number field to the tblExcelimport. Then loop thru its records and assign the newly added field with the DMax("[ID]", "tblData"). Then you can append it to the tblData. How this sounds to you? :)
  11. T

    ado recordset missing data

    You can import or link the text file into Access manually and see if all records show up or not. :)
  12. T

    to output Stored Proc/View result to xls via VBA code

    Did you see the sp_ActiveAccounts in Access Queries tab? Is this ADP? If you see the sp_ActiveAccounts in Access, try adding dbo. prefix to its name. dbo.sp_ActiveAccounts :)
  13. T

    DAO.recordset and reference

    It seems to me that you also have set ADO in the References. If this this the case, you have to add DAO as a prefix to all DAO objects. Something like this. Dim dbs As DAO.Database Dim rst As DAO.Recordset ... :)
  14. T

    Help with Arrays needed

    FileSearch already has a SortOrder property. Check your similar post in the other forum for more details. EMP, LoadFromText is one of several undocumented procedures hiddenly provided by Access. It enables you to create a form from a text file that was created by SaveAsText procedure. To learn...
  15. T

    Working with createobject

    You can use VBScript in Access with no problem. What are you trying to do with CreateObject?
  16. T

    TransferDatabase

    Try this out. DoCmd.TransferDatabase acExport, "Microsoft Access", _ "H:\Projects\SSSS.mdb", acTable, _ "tblInventorySource", "tblInventoryDest", False, False H:\ is your mapped drive. Or use UNC instead. DoCmd.TransferDatabase acExport, "Microsoft Access", _...
  17. T

    Word Templates and Saving as Documents

    Force it to save to a new file name. .ActiveDocument.SaveAs FileName:="c:\newfilename.doc", FileFormat:=0 'wdFormatDocument :)
  18. T

    Ado Vs. Dao Question

    We can't use Index property and Seek method with linked table. Check this How to perform Seek on Linked Tables for a workaround. :)
  19. T

    Problems on my function with dates

    Hello Nilses, It's me again. Sorry for leaving you high and dry. Check the revised code below. Function BetweenHoursInSecond(DateStart As Date, DateEnd As Date) As Long Dim lngSeconds As Long, lngHours As Long, intHour As Variant Dim IntWeek As Integer, intCount As Integer '...
  20. T

    Open form criteria

    Try this. DoCmd.OpenForm "frmDenBookingDay", , , "DenId=" & Forms!Main!DenId & " And Date Between " & Now() & " And " & DKount
Top Bottom