Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: GaryRW
  • Content: Threads
  • Order by date
  1. GaryRW

    Combo Rowsources - fill with text from a text box?

    Any ideas how to do this one? I have a combo box and I would like the row source to change dependant on what page of a tab control a user is looking at - so if the user is looking at page 1, the rowsource is taken from the contents of text boxes on page 1, if looking at page 2, the contents...
  2. GaryRW

    Mailmerge - total records?

    This sounds so simple I'm certain I'm missing something. Is there something along the lines of { NumRec } that would give the total number of records in the datasource for a mailmerge. For background what I'm trying to do is to control the mail merge. I'm using the NEXT mergefield to show...
  3. GaryRW

    Mailmerge - total records?

    I can't believe I can't work this one out (feeling it's very obvious) Is there a way to tell how many records there are in your data source in a mail merge? I want the equivalent of a { NumRec } field! any help would be much appreciated.
  4. GaryRW

    Basic VBA question

    I think this is pretty basic stuff, but that's probably why I can't work it out... Can you have a string and execute that as if it was a line of code, e.g. CodeStr = "Forms![Form1]![Control1].setfocus" and then a command or something along the lines of RunCode(CodeStr) I'm on...
  5. GaryRW

    Anybody know anything about Printer Properties?

    Can anyone help with details on how to change the printer properties using VBA code? For background, I am using Access to load and run Word and then run mailmerges in word using info from Access. For each merged document, I need to print one copy on headed paper, one copy on plain. This was...
  6. GaryRW

    Chaning printer Properties from Word

    I have developed a very annoying problem... For background, I am using Access to load and run Word and then run mailmerges in Word using info from Access. For each merged document, I need to print one copy on headed paper, one copy on plain. I had originally recorded a macro to print both...
  7. GaryRW

    Changing Printer Properties

    I have developed a very annoying problem... For background, I am using Access to load and run Word and then run mailmerges in word using info from Access. For each merged document, I need to print one copy on headed paper, one copy on plain. This was working fine, and I had originally recorded...
  8. GaryRW

    American/UK date formats

    I posted a query earlier about mailmerges and blank date fields being populated with the current date, but I've since discovered an equally annoying problem. I'm using access in the UK to run mailmerges in word. In Word 2000, this worked fine by setting the regional settings of the machine to...
  9. GaryRW

    Word 2002 versus word 2000 - mailmerge

    AHHHHHHH! I have just discovered a very annoying problem. I have a quite complicated system set up in office 2000 using access to run mail merges. In Word 2000, if a date field in the database is blank, then the merge field is blank (sounds sensible to me). I then have IF fields which ensure...
  10. GaryRW

    Word - is there a Date Add function???

    I am trying to do something which I think is really simple but I can not figure it out. I am setting out a timetable type document which sets out a lists of dates for things to happen, i.e. next week, four weeks time, 10 weeks time. Effectively what I want to say is {(Date + 28) \@ "d...
  11. GaryRW

    Input Masks - tabbing into control

    I have discovered a strange thing with my database today. I have input mask "09/09/0099" in text boxes linked to date fields. This works fine. (btw, I'm in the UK since we're talking about dates). I have come across a problem with regional settings. If the regional settings do not...
  12. GaryRW

    Detecting whether Word is already open

    I am using the code below to detect word (MyWordApp is a global variable): Public Sub StartWord() On Error GoTo Err_StartWord Dim wrdTmp As Word.Application 'On Error Resume Next Set wrdTmp = GetObject(, &quot;Word.Application&quot;) If Err.number <> 0 Then Set wrdTmp =...
  13. GaryRW

    Subforms and speed

    I've got a main form with a tab control with 10-12 pages. Most have subforms on, and most of those have one further subform. . The main form takes some time (about a minute) to load up now and taking its time closing for that matter. Ideally I would like to add further subforms to the tab pages...
  14. GaryRW

    Word: merging and showing &gt;1 record on one page

    I am basically trying to use word to show a list of people, with just name, address, etc in a table in word. I have all the details in an access table, and maybe I am missing something very obvious here, but I can't find a way to show more than one record (person) on the same page. (I know...
  15. GaryRW

    Refreshing Combo Boxes

    I wonder if any of you bright sparks can help... I have a main form showing client details. Each client can have details of several contacts, shown on a subform. I have a combo box which allows the user to select which contact's details to look at. Here's the pinch - I want to use the combo...
  16. GaryRW

    EXCEL: Can I refer to the Name of a sheet?

    I'm trying to refer to an appendix worksheet (i.e. see appendix 7). I keep having to insert new worksheets. At the moment I have all the worksheet appendices number 1 to x. The worksheet header refers to the sheet name to number the appendix, but I can't work out a way to refer to the sheet...
  17. GaryRW

    EXCEL: Convert date value into formatted text

    I'm trying to include both text and a dates in the same cell. The date just comes up as the date value (eg 37352). Is there a way to format the date without using the cell format (doesn't work) or maybe a way to convert the date to a string? I'm hoping there's a simple answer that I've missed...
  18. GaryRW

    Wait for dialog form to close before carrying on

    I really hope there is something simple that I'm missing here... I'm running a client database and then producing standard docs via a mailmerge. When you select a document, a pop - up, modal form is opened which asks you to select options for the requested document, you then click OK and off it...
  19. GaryRW

    Running procedures in other modules

    I'm trying to run a procedure in a module under a separate form, i.e. open a form, run a procedure but pass some variables to that procedure as well. I can just use onload event and put the variables I want in a control on a form and refer to them that way - not very elegant. What's the syntax...
  20. GaryRW

    MDE Files - quicker than .mdb files?

    General query... I've got an access database, running one main with several subforms, all with a fair amount of code underneath them. The main form is currently taking about 10-15 seconds to open. Is converting the database to an MDE file likely to speed this up by any significant amount?

Part and Inventory Search

Back
Top