SetDataSource not working for Web App Access database

I have a web app developed using VS 2008 that is using Crystal Reports to produce bar graphs. The data is held in an Access database. I developed the report using an Access database located in the App_Data directory.
I have the following code on the page load event.
   Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim con As New OleDb.OleDbConnection
        con.ConnectionString = System.Web.Configuration.WebConfigurationManager.ConnectionStrings("strConnect").ToString
        Dim path1 As String = "|DataDirectory|\ForthWorthISD.mdb"
        Dim report As CrystalDecisions.CrystalReports.Engine.ReportDocument = New BuildingUsage
        report.Load(Server.MapPath("BuildingUsage.rpt"))
        Dim com As New OleDb.OleDbCommand
        com.CommandType = CommandType.Text
        com.CommandText = "SELECT * FROM tblFWISDBuildingUsage WHERE BuildingName = '" & Session("BuildingName") & "'"
        com.Connection = con
        Dim adp As New OleDb.OleDbDataAdapter
        adp.SelectCommand = com
        Dim ds As New Data.DataSet
        Dim result As Integer = adp.Fill(ds)
        Try
            report.SetDataSource(ds)
        Catch ex As Exception
            Dim fubar As String = "Fubar"
        End Try
        Label2.Text = Session("BuildingName") & "      Monthy kWh"
        Label3.Text = "January 2006 Thru December 2008"
        CrystalReportViewer1.ReportSource = report
    End Sub
I have checked the DataSet after the fill and everything appears to be correct. There is only one row in the table
However the report is showing the entire table.
I have also tried setting the datasource to the datatable of the dataset with the same result.
How can I get this to work?

Hi Bob,
You stated that you designed the report against the access database itself correct?
Are there usenames and passwords required to access the db?
What looks like is happening is if you designed the report against the database instead of against an xsd file (which if you are using datasets should be done) then it has the access info stored so just hits it and pulls all the data.
Try outputting the schema of the dataset and do a set location in the designer to the xsd instead of the access db then try passing the dataset.
Jason

Similar Messages

  • Apple id not work for mac app store, what happen? It is available for others such as iTunes, my iPhone and iPad

    apple id not work for mac app store, what happen? It is available for others such as iTunes, my iPhone and iPad

    Try deleting the cache associated with the App Store..
    Quit the App Store if it's open.
    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type this exactly as you see it here:
    ~/Library/Caches/com.apple.appstore/Cache.db
    Click Go
    Move the Cache.db file to the Trash.
    Relaunch the App Store. See if that made a difference.

  • Cp8 pc, action 'exit' (for close app), not work for iphone app

    i found bug,
    when you use the action 'exit' on pc( it work well).
    but on iphone, it not work

    action "cpCmdExit" , it not work for iphone.

  • Iphone 4 push notifications not working for any app

    hi, Actually I own an iPhone 4 os 4.2.1(8c148). The thing is that push notification for all the apps that support this feature is not working, I've been an iphone user for long time now, so I konw all the stuff about turning on the push notifications etc. the problem is that my phone give me the pushes like 1 hr or 2 late, or some times never , i just have to open the apps to see my new messages and stuff. Since i live in colombia I have brought the iphone to the store and they take it for like a week and then they give me the phone back saying that is ok , but it isn't. I' have reinstalled the software, I've done anything you can think of, like turning on an of push notification, put it in plane mode, restore as new, backups, and I don't know what else to do, and the thing is that in colombia they don't exchange your phone that easy as it is in the US. So please any advise? ANd I'm sorry about my English. Thank you!

    Unfortunately you have already done everything we can possibly instruct you to do.. at this point the only option is getting them to exchange it its under warranty its not working you have to get a exchange

  • Localization problem: Traditional Chinese is not working for Taiwan App Store

    I have published an app that has three languages:
    (1) English (as Primary)
    (2) Simplified Chinese
    (3) Traditional Chinese
    I expect I can see Simplified Chinese in China App Store and Traditional Chinese in Taiwan App Store.
    I found out it works well for Simplified Chinese case.
    However, for Traditional Chinese, it's always English in Taiwan App Store. I have tried so many devices (with language setting to Traditional Chinese). I even went to a local Internet Cafe (so all computers are with Traditional Chinese setting), it's still English for Taiwan App Store.
    From iTunes Connect, when I go to "Version Summary" where I can change the "Territory" there. I always see English for Taiwan Territory while it's always Simplified Chinese when China is selected.
    From all the experiments I've done, I really think there is something wrong in App Store or iTunes to link Traditional Chinese with Taiwan App Store.
    How to report this kind of bug to Apple & have them examine this issue?

    Unfortunately you have already done everything we can possibly instruct you to do.. at this point the only option is getting them to exchange it its under warranty its not working you have to get a exchange

  • Handoff not working for iWork apps, but ok with Safari, Mail, etc.

    Handoff is working fine between my iPhone and my rMBP for Safari, Mail, Calendar, Maps, etc. but not working with Pages, Numbers and Keynote. 
    Have updated Pages, Numbers and Keynote to latest versions on both OS X and iOS.
    Any ideas?

    Well handoff is now working fine with Pages, Numbers and KeyNote between rMBP and iPhone 5s. 
    I've not changed anything but did notice that the iOS apps were updated on 6 November to version 2.5.1, so maybe there was a fixed included there.

  • Email not working properly, web apps not at all, 3g crashes....what's next?

    Email either won't connect or says no content. My web apps don't work at all since 2.0.2, they just crash before they ever start. And when I have 3g coverage, it crashes, and it really it was not faster than my old iphone. Do I have a bad phone? I am restoring now, we'll see if that does anything.

    Most people posting here have a problem, but not all.
    I'm not experiencing any of the problems provided by the OP. I'm also not having any 3G connection problems.
    To the OP, if a Restore from your iPhone's backup does not resolve it, try restoring as a new iPhone or not from your iPhone's backup. If there is a problem with your iPhone's backup, you are restoring the problem when restoring your iPhone from the backup.
    If neither restore option resolves your problems, call AppleCare at (800) 694-7466, or make an appointment at an Apple Store if there is one nearby.

  • Sql_trace does not work for Java app using Oracle JDBC thin driver

    Hi,
    I'm using Oracle 8.1.7. I enabled sql trace at instance level by setting sql_trace and timed_statistics to true in init.ora. I restarted the db instance. I wrote a stand-alone java application which used Oracle JDBC thin driver(classes12.zip) to make a connection to my db instance, do some select statements, and close the connection. There were no trace files generated in the folder specified by udump_dest variable. However, if I used sqlplus or dba studio, I saw trace files generated. Has anyone got Oracle sql trace work for JDBC calls from java apps.
    Thanks in advance!

    Hi,
    I'm using Oracle 8.1.7. I enabled sql trace at instance level by setting sql_trace and timed_statistics to true in init.ora. I restarted the db instance. I wrote a stand-alone java application which used Oracle JDBC thin driver(classes12.zip) to make a connection to my db instance, do some select statements, and close the connection. There were no trace files generated in the folder specified by udump_dest variable. However, if I used sqlplus or dba studio, I saw trace files generated. Has anyone got Oracle sql trace work for JDBC calls from java apps.
    Thanks in advance!

  • When I click "remember my user name" for web pages, it does not work for web pages - I have to login after every restart (eg Hotmail)

    On websites I visit daily – newspapers, Hotmail, etc, even though I have clicked "remember me on this computer", it does not work. I have to log in every time I have restarted my computer (Mac OSX 10.5.8). Also, this may be related. I have iGoogle as my home page, but "themes", location, widgets, etc are not saved when I shut down.

    * Such details are stored in a cookie.
    * You need an allow cookie exception (Tools > Options > Privacy > Cookies: Exceptions) to keep that cookie, especially for secure websites and if you let cookies expire when Firefox closes
    * Make sure that you do not use [[Clear Recent History]] to clear the "Cookies" and the "Site Preferences"
    Clearing "Site Preferences" clears all cookies, images, pop-up windows, software installation, and password exceptions.
    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    "Remove the Cookies" from sites causing problems: Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    If clearing the cookies doesn't help then it is possible that the file <i>cookies.sqlite</i> that stores the cookies is corrupted.
    Rename (or delete) <b>cookies.sqlite</b> (cookies.sqlite.old) and delete <b>cookies.sqlite-journal</b> and <b>cookies.txt</b>, if they exist, in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder] in case the file cookies.sqlite got corrupted.
    * http://kb.mozillazine.org/Cookies#Removing_cookies

  • @Intertseptors does not work for web bean (for JSF page)

    @Named
    @ConversationScoped
    @Interceptors(MyInterceptor.class)
    public class BeanWeb implements Serializable {
        public String methodThrowException throws Exception() {
            throws new Exception();
    public class MyInterceptor {
        @AroundInvoke
        public Object intercept(InvocationContext ic) throws Exception {
            try {
                return ic.proceed();
            } catch (Exception e) {
                return null;
    }For @Stateless beans interceptor works, but for the BeanWeb interceptor does not work. And we have never entered into "intercept" method.
    1. Why is this happening?
    2. How could intercept method calls in BeanWeb?
    P.S.: All this spin under Glassfish 3.x.

    All the links on this page work for me. Did you empty your browser cache before visiting the published site?

  • Subscription renewal not working for all apps

    Hello.  My credit card was not updated quick enough within the 30 days.  I updated credit card info and photoshop works, but flash does not.  Says I need to renew my subscription, but I already have

    Does your Cloud subscription properly show on your account page?
    If you have more than one email, are you sure you are using the correct Adobe ID?
    https://www.adobe.com/account.html for subscriptions on your Adobe page
    If yes
    Some general information for a Cloud subscription
    Cloud programs do not use serial numbers... you log in to your paid Cloud account to download & install & activate... you MAY need to log out of the Cloud and restart your computer and log back in to the Cloud for things to work
    Log out of your Cloud account... Restart your computer... Log in to your paid Cloud account
    -Sign in help http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp
    -http://helpx.adobe.com/creative-cloud/kb/license-this-software.html
    If no
    This is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • TS3274 audio dose not work for some apps on my ipad

    For some reason my Ipad is choosing which apps to produce audio

    If you have no sound at all, even in the Music App, try rebooting the iPad.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    If you lost sounds for keyboard clicks, games or other apps, email notifications and other notifications, system sounds may have been muted.
    System sounds can be muted and controlled two different ways. The screen lock rotation can be controlled in the same manner as well.
    Settings>General>Use Side Switch to: Mute System sounds. If this option is selected, the switch on the side of the iPad above the volume rocker will mute system sounds.
    If you choose Lock Screen Rotation, then the switch locks the screen. If the screen is locked, you will see a lock icon in the upper right corner next to the battery indicator gauge.
    If you have the side switch set to lock screen rotation then the system sound control is in the control center. Swipe up from the bottom of the screen to get to control center . Tap on the bell icon and system sounds will return.
    If you have the side switch set to mute system sounds, then the screen lock can be accessed in the same manner as described above.
    This support article from Apple explains how the side switch works.
    http://support.apple.com/kb/HT4085

  • ITunes 10.6.3 for Win7 64 bit does not work for iPad apps

    I have downloaded and installed iTunes 10.6.3 64 bit for Window 7 four times - and re-installed 3 times.  When it asks if I would like to repair, I way yes.  This does not correct the problem.  I have an iPad 2 w/ 3G and Wi-Fi.
    My problem is that while the iTunes on my Windows PC (running Windows 7 Professional, w/Service Pack 1 - 64-bit) will start, and will show my iPad when the iPad is connected, when I click on the iPad listing, and then on the Apps tab - this feature is basically unusable.   This screen shows the basic Home Screen - with all icons dimmed, and then smaller versions along the right side of the basic home screen and my 2 others I've created.
    1. All of the home screens shown - and all icons - are dimmed.
    2. There is no list of apps along the left side.
    3.  Clicking on any of the home screens or on any of the icons does nothing.
    Therefore I'm not able to choose any apps to sync from the iPad to the PC - nor am I able to re-position any of the apps from one screen to another.
    4. Clicking on the Sync Apps button on top left - says "All existing apps and their data on the iPad will be replaced with apps from this (the PC's) iTunes Library.  In other words, the only thing I can do is sync from my PC to the iPad - thereby wiping out any new apps on the iPad.
    5. Clicking on the Sync button in the lower left does nothing.
    So basically, there is no syncing from my iPad to the PC -- period.
    HELP!!!
    (Oh - also when I connect my iPad, it says there is an update to the 5.1 operating system and would I like to update, but when I say Yes, it warns that I have purchased software on the iPad that has not yet been transferred to iTunes and I should do that first.  But of course, since I can't sync, I can't do that first.)

    I've also got a similar problem. I upgraded yesterday & today I find (mainly with previously purchased tracks) that iTunes only playes about 51sec of a track. The whole track plays when using "Quicktime" but this doesn't help me when I'm trying to put together a playlist.
    Can anyone out the help?

  • Handoff not working for iWork apps

    I have an iPhone 6, iPad 4, MacBook Pro (2013) and Mac Mini (2012). The iOS devices are running 8.1 and the Mac is running 10.10. I do not have any issues using handoff with Safari, but none of my iWork apps are handing off in either direction. I did have some success getting Keynote a few times handing off from iOS to OS X. Anything that I need to do differently or is it still just buggy?
    Thanks.

    Well handoff is now working fine with Pages, Numbers and KeyNote between rMBP and iPhone 5s. 
    I've not changed anything but did notice that the iOS apps were updated on 6 November to version 2.5.1, so maybe there was a fixed included there.

  • Reader 9.4.0 not working for web PDFs (Mac OS 10.5.8, G5)

    I recently updated my Reader software to 9.4.0.    Now web PDFs just hang, using either Safari or Firefox.   Downloaded PDFs are fine.   Would welcome any suggestions. 

    I recently updated my Reader software to 9.4.0.    Now web PDFs just hang, using either Safari or Firefox.   Downloaded PDFs are fine.   Would welcome any suggestions. 

Maybe you are looking for

  • How to get the value of the current form values after "save" in MD form

    Hi, I am trying to run a procedure using the form values right after I save the current records in a master-detail form. When I pass the value using p_session.get_value to the procedure, there is only null value passed. I checked the package body gen

  • Cluster tables in SAP

    Hi all, what are the cluster tables in SAP. and shall we use inner join statment on cluster tables. regards, Suresh

  • Webservices and XSQL

    Hi! I have a question: I would like to use Oracle's XSQL servlet. I have a .xsql file which calls a function and returns a data in XML format. Now how can I use this in weblogic using webservices? Anybody has an idea? Thanks in advance ..Madhuri

  • How to disable sender images in Gmail app?

    Hi all, The recent update made a change in the Gmail app where it'll display an image for the sender in the main window. If you don't have an image for the sender (which is 100% the case for me), it displays the first letter of the sender's name in a

  • Oracle.AQ package

    Hi, From where can I download oracle.AQ. package for 8_1_7?. Please provide me some link. Thanks!!