Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1. Monthly (Recurring) Target: $300 :: Achieved: $95
      Become a Supporter    ::   Make a Contribution   

Using acOutputServerView

Discussion in 'Information Technology' started by Tim Unsted, Nov 4, 2005.

  1. Tim Unsted

    Tim Unsted
    Expand Collapse
    Guest

    Is there an upper limit to the length of the [ObjectName] argument when
    using the DoCmd.OutputTo acOutputServerView to output data to Excel, for
    example. I'm hitting on problems when using an SQL statement that exceeds
    around 160 characters (running Access 2000). I can find no documentation
    about any such constraint.

    I'm using a form that allows users to build a customized export of data but
    this is only working when using a handful of fields - not much good, really.
    If there is a limit to the length of this argument, does anyone have any
    other suggestions as to how I might achieve such and export?

    The following is a typical SQL statement generated that does work, so you
    can see the type of string I'm trying to use:

    SELECT [Author],[Author/Editor],[Citation],[Classmark],[Collection] FROM
    KAVExportCopyDetails WHERE [Media Type] IN ('Encyclopedia') Order By
    [Classmark],[Title]

    Obviously I could get rid of some of the square brackets, but because the
    SQL string is dynamically generate this would be problematic because they
    are required around certain field name. This is really missing the point
    anyway. Anything much longer than this string and I get an error.
     
  2. Loading...


Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page