Results 1 to 4 of 4

Thread: access, word and headaches...

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    Canterbury,Kent,UK
    Posts
    8

    Angry

    OK, long and comlicated....

    basically I'm trying to mailmerge a current record to word. I have a query that finds the current record from the key on the form but when i try to mailmerge it word starts a new session of access and then, no surprise, the query prompts for the form field....

    any idea how to get word to use the current session, or any other way of fixing it?

    it occoured to me that i could get the windows userid with an API call and write it vs the table key value in another table... then the key number could be picked up in without the form open... but i think the chances of getting the query to pick up the userid are... well... slim...

    any idea?

  2. #2
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    to get the userid use GetUserName. I don't know how to help on your other issues, sorry
    GWDASH
    [b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]

  3. #3
    Junior Member
    Join Date
    Dec 2000
    Location
    London
    Posts
    24

    Question Were you able to sort this one out?

    I'm having the same problem, Access opening twice - but is there a way of getting around opendatasource? Were you able to solve it? If so please reply.

  4. #4
    Guest
    I think you guys both need to use "getobject" from vba - trapping the error that is caused by no such object existing as this grabs an instance of an already open database?


    (create a new object in that case (I think it might be error 429 - could be wrong)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width