User Profile

Collapse

Profile Sidebar

Collapse
mandanarchi
mandanarchi
Last Activity: Jan 17 '11, 03:00 PM
Joined: Sep 16 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Thanks again NeoPa.

    I'm more comfortable with Access to be completely honest. Though I'm quite happy with excel formulas, I try to avoid excel vba & macros where I can.
    See more | Go to post

    Leave a comment:


  • Thanks NeoPa, that's what I thought too.

    My first thought when he asked me about this was - if the workbooks are that important, why would they be moved or have their names changed?

    I have no idea what these sheets are for, or what they contain, I just thought I'd ask, see if I was overlooking something obvious.
    Thinking about it I don't even know if they're on a network share or not - though I guess they must...
    See more | Go to post

    Leave a comment:


  • mandanarchi
    started a topic Excel VBA - Checking externally linked files

    Excel VBA - Checking externally linked files

    First off I apologize if this is in the wrong place - there isn't a section for Excel and I figured that Excel/Access VBA are similar enough for me to get away with it. Someone please move it if they think there's a more appropriate place for it.

    To the problem.
    A friend has asked me if I know of a way to keep external links unbroken - even if the linked workbook is moved or renamed. I don't think there's an easy way.
    ...
    See more | Go to post

  • mandanarchi
    replied to Print to Specific Printer
    I wasn't asking you to do it for me NeoPa, I was asking for help.
    I didn't understand what the error message was saying so I asked, that's all.

    I think I more or less understand it now, and Google is my friend, so thanks for all your help.

    Mandi.
    See more | Go to post

    Leave a comment:


  • mandanarchi
    replied to Print to Specific Printer
    Run-time error '91':
    Object variable or With block variable not set

    Error on this line
    Code:
    If ptrThis.Port = strIP Then
    See more | Go to post

    Leave a comment:


  • mandanarchi
    replied to Print to Specific Printer
    Ah.
    Each computer in the company has a random number of installed printers all attached via IP, mine for instance currently has 21. Most of the other computers were set up before I got here (which is why I don't know who has which, what each one is called etc.)

    In the Printer properties, the Port Name is IP_xx.xx.xx.xx (obviously xx is the specific IP address), I'm assuming that's the part you mean?
    See more | Go to post

    Leave a comment:


  • mandanarchi
    started a topic Print to Specific Printer

    Print to Specific Printer

    I have a button that prints a report and runs a query to update the records whose invoice was printer.

    I have the report setup to print on a specific printer.

    It's been working fine for months, then all of a sudden yesterday it printed on our mono machine instead of our colour one. Which meant I had to go into the queries and reset the ones that had been updated.
    When I opened the report in design view and it said...
    See more | Go to post

  • mandanarchi
    replied to XSL Sorting/Grouping question
    in XML
    Here's my working solution. Ta for the help guys =)

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" indent="yes" encoding="UTF-8" />
    <xsl:template match="/">
    <ToEmail>
    <xsl:for-each select="//XMLTemp1[not(Who=preceding-sibling::XMLTemp1/Who)]/Who">
    ...
    See more | Go to post

    Leave a comment:


  • mandanarchi
    started a topic Solved: Product Calculation

    Solved: Product Calculation

    I know there isn't a native function for calculating the product in Access like there is in Excel, but I'm trying to incorporate our various spreadsheets into our database and therefore I need this capability.

    I found this function:
    Code:
    Function Product(strField As String, strTable As String, _
    Optional strCriteria As String) As Double
    Dim rs As DAO.Recordset
    Dim strSql As String
    Dim dblResult As Double
    ...
    See more | Go to post
    Last edited by mandanarchi; Mar 24 '09, 02:45 PM. Reason: Idiot problem - named module same as function >_<

  • mandanarchi
    replied to XSL Sorting/Grouping question
    in XML
    Obvious. 'current()' was what I needed.
    That plus a couple other minor edits and solved.
    Always seems obvious once I've already asked.
    Thanks folks
    See more | Go to post

    Leave a comment:


  • mandanarchi
    replied to XSL Sorting/Grouping question
    in XML
    I copied the line from a working code I have:
    Code:
    <xsl:for-each select="//XMLtemp[Suppliers='Advent']">
    The problem is that I don't know what to replace [Suppliers='Adve nt'] with. That's just a static 'if suppliers = Advent then show it', I need a 'if Who = currently selected who then show it'.. Does that make sense?
    See more | Go to post

    Leave a comment:


  • mandanarchi
    replied to XSL Sorting/Grouping question
    in XML
    Thanks Dormilich but that's not what I mean.
    I want to only select each 'Who' once, and have all the contacts related to them listed below like this:
    Code:
    JoeSmith
    Person 1
    Person 2
    KateGeorge
    Person 3

    I've got this much
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    ...
    See more | Go to post

    Leave a comment:


  • mandanarchi
    started a topic XSL Sorting/Grouping question
    in XML

    XSL Sorting/Grouping question

    I found the answer last time I was 'playing' with xsl, but I didn't need to use it then and like an idiot, I didn't save where I found it.
    I've tried Google but it's not coming up with what I need.

    From Access I'm exporting a file to xml in the following format:
    Code:
    <XMLTemp>
    <Who>JoeSmith</Who>
    <Contact>Billy Joe</Contact>
    <telephone>123457980</telephone>
    ...
    See more | Go to post

  • mandanarchi
    replied to Excel Macro / VBA
    I don't know that one... But it has been a good few years since I last played with Excel properly.
    I'll go Google when I get a chance.
    Ta FishVal
    See more | Go to post

    Leave a comment:


  • mandanarchi
    started a topic Excel Macro / VBA

    Excel Macro / VBA

    I'm working on a spreadsheet for a client and I'm not sure of the best way to do this.
    It's basically a calendar with numbers (of days) across the top, month (in jan/feb/mar format) down the side and the year in a text field (Holidays 2009 type of thing)

    I can put them together to work on them as a date no problem, and I have done to work out the day as text (mon/tue/wed format). I've used conditional formatting to put the background...
    See more | Go to post

  • mandanarchi
    replied to Table Search from LostFocus
    No problem =)
    Glad I could help.
    See more | Go to post

    Leave a comment:


  • mandanarchi
    replied to Table Search from LostFocus
    Darnit. Just spotted a mistake.
    The >Date()-30 should be <Date()-30

    Try that and see if that one works.
    See more | Go to post

    Leave a comment:


  • Never mind. The tech guy finally got back to me and is sorting it.
    See more | Go to post

    Leave a comment:


  • mandanarchi
    replied to Table Search from LostFocus
    Probably not the best / quickest method, but I'd make a query here. Something like:
    Code:
    SELECT CustomerID 
    FROM tblSales 
    WHERE Postcode=[forms]![frmNewSales]![PostCode] And CustomerID=[Forms]![frmNewSales]![CustomerID] And DateOfVisit >Date()-30 AND Paid=0;
    I'm no SQL genius, that might need a little fudging to get it right.
    That's based on your postcode text box being called 'PostCode', and also that you have the...
    See more | Go to post

    Leave a comment:


  • mandanarchi
    started a topic Ignore: fixed - [Invalid Security Certificate]

    Ignore: fixed - [Invalid Security Certificate]

    Code:
        Set myHTTP = CreateObject("msxml2.xmlhttp")
        Set myDom = CreateObject("MSXML2.DOMDocument")
        myDom.async = False
        myDom.Load (myxml)
        myHTTP.Open "POST", "https://link-removed.aspx", False
        myHTTP.Send (myDom.xml)
    I use this code to send xml orders to one of our suppliers (there's more to it, but this is the relevant part)
    One of them...
    See more | Go to post
No activity results to display
Show More
Working...