Recent content by johncallaghan

  1. J

    Attachement download in VB

    Look at the attached link I think it is what you are looking for http://www.fontstuff.com/outlook/oltut01.htm Cheers John
  2. J

    Run-Time Error 3265

    this is usually because a field is not available in a query. Go to the error and look at the line of code and try and check all the fields that are in the query, usually it becomes obvious failry soon. Cheers John
  3. J

    SMS messaging using Outlook with MOSA

    I want to be able to send a SMS message from Ms Access by starting Ms Outlook and use the phone number from Access and insert a text message. I have downloaded and installed Microsoft Outlook SMS Addin (MOSA) which allows SMS to be sent via a mobile phone connected to the computer. I can do...
  4. J

    Running a Macro in Word On Open

    Why not open Word from within Access and then place bookmarks where you want to insert data and then use something like this precedure to insert the text. MsObjDoc is a global variable the Word.Document that is open. Public Sub InsertText(BookMk As String, TextToInsert As String) Dim...
  5. J

    File Lock

    Can you post some data so that I could try out your routine? cheers john
  6. J

    Question Help with Relationships? (Access 2007) No Unique Index Found

    What is your key field in 'Departments'. Have you got a DepartmentID for instance. If this is the key filed you will have no problem creatinf two relationships. Cheers John
  7. J

    DELETE FROM foo; and DELETE * FROM foo;

    I use DoCmd.RunSQL "DELETE * FROM foo" and this works fine Cheers John
  8. J

    Access 2003 - Only showing First page of a Group

    I assume that you are using a query to generate the report. Depending on the query you are using go in to SQL view and after the 'SELECT' keyword add 'DISTINCT' or 'DISTINCTROW' depending on the query and you will not get repeated entries. It is very useful Cheers John
  9. J

    Import range from Excel to Access with field names

    I have encountered this problem and the way I get round it is to import the spreadsheet as you have tried to in your first example into a temporary table, and then assuming the fields are in the same order each week import/append he data into another table with the fieldnames in. this will...
  10. J

    Bookmark in a Text Box in Word

    I am inserting data from Access into Word. This code has been working fine for the last five years but when the bookmark is in a textbox it passes the first test and determines that the bookmark exists but on the next line it tells me 'cannot find requested bookmark'. MSObjDoc is a Public...
  11. J

    Auto-adjust size of memo field?

    <shift><F2> will make the textbox popup. I hope this helps Cheers John
  12. J

    Multiple queries in 1 report

    I load a form on startup that is hidden e.g. DoCmd.OpenForm "frm_VariableStore", , , , , acHidden Have a text box for storing variables and refer to them by forms!frm_VaraiableStore!txt_Var1 = ### etc then in the query place > forms!frm_VaraiableStore!var1 and < forms!frm_VariableStore!var2...
  13. J

    Can't synch Access DBs

    I suggest you look at the data structure of each table in both DBs in particular the maximum length of string fields. Cheers John
  14. J

    DoCmd.SendObject or Case error

    Try something like this to: iif(nz(Me.contact1),me.contact1 & ":","") & iif(nz(me.contact2),me.contact1 & ";","") ' etc you may need to look up iif and nz Cheers John
  15. J

    Take my database offsite and back?

    UNC does not do what I want. I can change the location of M: and N: I use it to have local copies of the database running on the desktop or I can change it to a remote location running on the server. When four computers were all running on the server it sometimes got very slow. This way it...
Back
Top Bottom