Linking to an Access Database (accdb) - calculated field in query

Using Crystal Report v 14 we have a problem linking to an Access 2010 database (accdb file format).
We created a query in the Access database with a calculated field that we want to use to link with Great Pllains database. We can see the query using the database expert and the OLEDB (ADO) data source. The problem is that the calculated field in the Access query does not show in the link manager.
What is the best wat to link an Access table that has a job number containing hyphens (111-222-333) with the other database that has the job number stored without hyphens (111222333)? Why does our query solution not work?

Hi,
I'm not sure if this can be handled at the Database query level, however this can surely be handled from the report level.
You would need to insert a subreport with Great Pllains as its datasource. The Main report's data source would be the access table.
Next, in the Main report you would need to create a formula to remove the hyphens from the string and convert it back to number. Use this formula:
tonumber(replace(,"-",""));
You can then palce this formula in the details section/group section (which ever is applicable) and then link the subreports's job number field with this formula field. A record selection formula is automatically added in the subreport when you do so.
Also, make sure the sub-report is place in the same section this formula field is placed in, otherwise you can get unexpected results.
Hope this helps!
-Abhilash

Similar Messages

  • Linked Server to Access Database in SQL Server 2012 is working perfectly.But, All of sudden it is showing SQL Error Code:7303

    Linked Server to Access Database in SQL Server 2012 is working perfectly.But, All of sudden it is showing SQL Error Code:7303  
    Unable to connect to the database type that is created with earlier versions type. But the same Linked Server in another SQL Server instance is working perfectly. I am unable to rectify what is the problem please help.

    All of sudden it is showing SQL Error Code:7303  
    Error 7303 = "Cannot initialize the data source object of OLE DB provider "%ls" for linked server "%ls"."?
    Check the data Provider on the machine, e.g. using ODBC Admin by creating a DSN
    Olaf Helper
    Hi Olaf Helper,
    I don't now how to add a DSN for the Access Database using ODBC Admin. Can you Please help me with that one. as the solution to above problem i Have added a startup parameter -g512 to SQL Server is it effects my existing Assemblies in SQL Server. I am replacing
    the startup parameter as -g500 to -g512 here.
    Thank you
    Regards,
    AyubKhan M

  • Linking Java to Access Database tables

    Hello,
    I need use JCreator to link Java to Access Database tables.
    Could any one tell me what kind of drivers I need use?
    Also, where could I find the examples of linking Java to Access Database tables?
    Thank you,
    Daniel

    Thanks.
    I have read the tutorial and downloaded the sample code from the web http://java.sun.com/docs/books/tutorial/jdbc/
    In the CreateCoffee.java programming, I made the following changes:
         //     String url = "jdbc:mySubprotocol:myDataSource";
              String url = "jdbc:odbc:DB1";
    DB1 is an Access Database file located in the same folder as CreateCoffee.java.
    //Class.forName("myDriver.ClassName");
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Every time when I run the CreateCoffee.java programming, it shows the following running error:
    SQLException:[Microsoft][ODBC Driver Manager]
    Data source name not found and no default driver specified.
    Could any one have any suggestions for solving the above problem?
    Thank you,
    Daniel

  • How do I get to a access database to fill fields on a liveCycle form?

    I have created a form using LiveCycle Designer and I want to fill in some of the fields on this form by acessing a Acess Database. I have looked on the internet, but have not found anything to help me with this issue. Is there any books or manuals that will help me with this challenge? I figured I could put a button on the form that when clicked it would go find the database andbring back the data and fill in the form. Thanks!

    I have created a form using LiveCycle Designer and I want to fill in some of the fields on this form by acessing a Acess Database. I have looked on the internet, but have not found anything to help me with this issue. Is there any books or manuals that will help me with this challenge? I figured I could put a button on the form that when clicked it would go find the database andbring back the data and fill in the form. Thanks!

  • Calculation Field in Query

    Hi,
    I am devloping a query report of the confirmation details of process order.
    In which the execution start/finish date & time are confirmed during the confirmation process.
    The report of the same can be derived from COOISPI under operations.
    But, I want to calculate the duration on the basis of start/finish date & time. which is not available in standard COOISPI report or in table.
    I have created the query using the same tables as in COOISPI - operations. And now, I want to add an extra field which is not a part of the table. Also, how to assign a formula = (end date+end time)-(start date + start time)?
    I am not an ABAP person. I am just a simple PP/QM person. So, I don't know more about the same.
    Thanks in advance.
    Dipesh

    Hello Dipesh,
    You need to create an additional field.  Did you create an Infoset for this query (transaction code SQ02). 
    1.  After you create your table joins, select pushbutton labeled "Extras."  Select create icon, then enter field name and select radiobutton "Additional field" on popup box for Additonal information.  On popup box "Additional field" enter the new field text information, type and length.
    2.  You should see your new field in a list on the right-side of screen.  Select "CodingforAddition" icon.  Program your logic here.
    3.  Make sure you add your new field to a field group.  Generate your infoset. 
    4.  Call transaction SQ03 and assign your Infoset to a user group.
    5.  Call transaction SQ01 and create a query based on the Infoset you created.
    Kind Regards,
    Rae Ellen Woytowiez

  • Migrate MS Access 2007 multi-valued fields to MS SQL 2012

    Hi! I do have a MS Access data base (made of MS Access 2007) which has an Attachement field. As you know Attachment DataType is a multi-valued field that replaces the Object Link Embedding (OLE) Object DataType in the new Access Database (ACCDB) file
    format. At present the whole DB has reached to the max size which is 2GB. Since we want to use the data and add more data to it, I was tasked to findout ways of converting it to SQL server. I have tried to use Import and Export data x32 module to import data
    from MS Access to MS SQL Express 2012. All the data were imported except the BLOBs at the Attachement filed. Could you please help me to import those BLOBs to MS SQL DB. Thx!

    Hello,
    About those OLE objects, please try the following article:
    http://www.codeproject.com/Articles/90908/Saving-OLE-Object-as-Image-Datatype-in-SQL
    Another recommended resources:
    http://www.microsoft.com/en-us/download/details.aspx?id=28763
    http://blogs.msdn.com/b/ssma/archive/2011/03/06/access-to-sql-server-migration-understanding-data-type-conversions.aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • The Microsoft Access database engine cannot open or write to the file \\fileserver\db\access.mdb

    Hi,
    I have Windows Server 2012 with SQL 2012 Standard SP1. I am using linked server, and Access Database Engine 2010 Redistributable to access my database file made in Microsoft Access (.mdb) from network file server.
    EXEC master.dbo.sp_addlinkedserver @server = N'MyLinkedServer', @srvproduct=N'MyLinkedServer', @provider=N'Microsoft.ACE.OLEDB.12.0', @datasrc=N'\\myfileserver.mydomain.com\files\mydatabase.mdb'
    My SQL service is running with domain service account MYDOMAIN\SQL1$ , i have added Full control for file share and NTFS permission on my file server folder (C:\Files).
    When I open (as domain admin with UAC elevated permissions) on my DB server SQL Management studio, I can browse tables and everything works.
    The problem is, if I open SQL management studio (as domain admin with UAC elevated permissions) on my File server or any other computer, when trying to browse my linked server i got error:
    TITLE: Microsoft SQL Server Management Studio
    Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476
    ADDITIONAL INFORMATION:
    An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
    Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "Synesis_3PRO2013". (Microsoft SQL Server, Error: 7303)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.00.3000&EvtSrc=MSSQLServer&EvtID=7303&LinkId=20476
    When I try to place simlpe Select SQL query I got error:
    OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "MyLinkedServer" returned message "The Microsoft Access database engine cannot open or write to the file '\\myfileserver.mydomain.com\files\mydatabase.mdb'. It is already opened exclusively by another
    user, or you need permission to view and write its data.".
    I do not have any other program using my access database, and user has full control. I am trying to use in security mode - "For a login not defined in the list above, connections will be made without using a security context", i have also tried all four options.
    I am confused becouse it works from SQL server but from any SQL client domain member computer/server it does not work.
    I have same problem in another environment where I have Windows Server 2008 R2 and SQL 2008 R2 SP2.
    Please help.
    -- Hrvoje Kusulja

    NTFS must be fine since it works from same server using same accounts.
    As I understand, adding my access file to Access trusted location could be a problem. I have tried now to add my access database file location to trusted locations for user which is my SQL service user (Windows Service - AD managed service account MYDOMAIN\SQL1$)
    and my test user which I use to connect to sql server as a client from sql management studio. (Account is Domain Admins and have full permissions on SQL server also)
    I have added this .reg:
    Windows Registry Editor Version 5.00
    [HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Access\Security]
    [HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Access\Security\Trusted Documents]
    "LastPurgeTime"=dword:01592874
    "DisablePromptOpenNetworkTrustedDocuments"=dword:00000000
    [HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Access\Security\Trusted Locations]
    "AllowNetworkLocations"=dword:00000001
    [HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Access\Security\Trusted Locations\Location0]
    "Description"="My file server"
    "AllowSubFolders"=dword:00000001
    "Path"="\\\\myfileserver.mydomain.com\\files\\"
    I have done this for SQL service account user and my personal test account as I said. I have tried to logoff and restart sql service and all servers also.
    The same problem still persists.
    Anyway, thank you for giving me a hint.

  • How to use DB toolkit to input string 255 into ACCESS Database

    I am converting an existing LV-Application from LV5.1.1 w/SQL toolkit to LV7.1 with DB-Conn. Toolkit.  One of the tables in my MS-Access database has a field of TYPE=memo (allows string lengths > 255 characters).  I can't seem to find how to insert this field in the DB-table using the "DB Tools Insert Data.VI" without getting an error.  I have tried converting the input string to a [U8] array, but that also doesn't work.  Just inputing the long string (390-chrs) also gives an error.  Reducing the string length to < 255 allows the new record to be input into the table without errors.  However, I need to be able to input the longer strings for the application to work.
    Does anyone have a solution to this problem.
    Thanks,
    Jim Cardinal

    Something like this
    David
    Message Edited by David Crawford on 01-12-2006 11:53 AM
    Attachments:
    Insert Text to Memo Using DBT.jpg ‏14 KB

  • Labview using access database

    "I need to use labview in order to read and write to an access database (8 columns per entry). I'm not too familiar with the program, but i know that we have the database connectivity toolset and the sql toolset installed. Does anyone have any simple examples laying around for someone who isn't labview savvy?"

    I did a search of the examples on the web site and found 100s of examples on LabVIEW and an access database. Do a search at this link for "microsoft access database labview" Example Code Library
    The top example I found is titled "Write Table in Columns to an Access Database" which sounds pretty close to what you are looking for.
    Hope these help.

  • Accessin Access Database it changes the path by itself???

    Hi to all. First of all I would like to apologize about the "zombie resurection". Sorry i didn't know.
    I'm doing what HK_Developer said, but it doesn't work.
    This is my code:
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    //Connection con = DriverManager.getConnection("jdbc:odbc:c:xxx.mdb", "myusr", "mypwd");
    // or
    Connection con = DriverManager.getConnection("jdbc:odbc:Driver={MicroSoft Access Driver (.mdb)};DBQ=C:/xxx.mdb","myusr","mypwd");
    // i tried boths ways
    Statement stat = con.createStatement();
    stat.execute("select from articulos");
    catch(Exception e){ jButton1.setText(e.getMessage());
    jTextArea1.setText(e.getMessage());}
    I don't know what is wrong but it gives me a message saying (more o less) that "o:/yyyy.mdb" is not a valid path. I don't know why it changes the path i use in the "getConnection" parameters. I don't kow where it cacth the "o:/yyyy.mdb".
    Thank you very much.

    I finaly found the solution. My mistake.
    The database i am accessing have some linked tables to another database. My statement is querying one of this tables. That is because te system returns me the message with another path.
    Sorry. I'm newbie.
    Thanks to all.

  • Link dropdown choice to multiple text fields from access database

    Is there anyway to link the choice of a dropdown field so it populates other text fields?
    Example:
    I have created a Data Connection from a MS Access Database for a drop down list which is CompanyName.  When I choose the company name I would like it to populate First Name, Last Name, Email, Adress, etc.  Does this require a significant amount of code to do...and if so does anyone have a good book suggestion to learn the code for something like this?
    Any help in solving this problem is greatly appreciate.  I have searched everywhere and found no conclusive answer.  Or maybe I am just searching in the wrong place?  Thanks for your help.

    You will have to make another data connection and create a SQL call to the DB that will incorporate the selection made in the DDList. This will involve code. There is a sample wriiten by Stefan Cameron at this location:
    http://forms.stefcameron.com/2006/09/29/selecting-specific-database-records/
    Paul

  • Linking pdf form to an access database

    Hi. Fairly new user here. I was wondering if anyone tell me how to get a pdf form to deposit the entered data (from the form fields) into an existing access database. Both the forms and the db exist on the same server. What kind of link do i require? Please explain.
    Thanks so much
    oh, acrobat 7 and windows xp

    You will need Acrobat Professional or LiveCycle Designer. With Acrobat Professional you create your forms with the Form Tool and write JavaScipt to establish the ADBC, Adobe Data Base Connection, and pass SQL Execute parameters. For LiveCycle Designer forms you create a data connection and then write FormCalc or JavaScript to pass SQL Execute parameters.
    This topic is far too much to put in one post.
    In Acrobat and LiveCycle Designer development centers there are examples.

  • Can i link Labview to a access database?? I now activeX can do it, but which one??

    Hi there,
    I was wondering if i could link a access database to labview.
    I could do with linking field as well as writing/deleting etc.
    And if I could sort as well that would really be good!!!
    Thanks again everyone!!!

    Hello Peter, You can also use the Database Connectivity toolkit for LV. Have a look at the information on NI's website. This may make life easier!
    You may also be able to do this programmatically using MSQuery in Excel or Access and you can control these products using LV. This would be rather challenging though.
    The suggestion made I think is also possible.
    Hope this helps
    Kind Regards
    Steven Bird
    Applications Engineer
    National Instruments

  • "People Picker" field not letting update SP linked table in Access

    Hello all,
    I have linked a SharePoint list to an Access database in order to manipulate some data. This list contains several fields, including a people picker in which its data come from SharePoint. 
    Once in my Access DB, I need to update some fields of this list, however when I try to change some values from a record that has the people picker populated I get the following error message: "you cannot reference rows created
    when you are disconnected from the server because this violates the lookup settings defined for this table". I only get this when I have values on people picker, I can proceed without any problem when I have it set as blank.
    So, do you have any idea on how to accomplish an update operation while having a people picker field populated?
    Thank you in advance.

    Hi Pedro,
    I recommend to check if the user populated in the RequestBy exits in User Information List in SharePoint site and the choices listed in Access for status field are existed in SharePoint Status column.
    Please refer to this thread for more details:
    https://social.technet.microsoft.com/Forums/office/en-US/8a7baf3b-5a3a-4631-82f9-b43d992155d1/updating-sharepoint-2010-list-from-access-2007?forum=sharepointgenerallegacy
    More reference:
    http://blog.incworx.com/blog/elizabeth-pecoras-sharepoint-blog/you-cannot-update-this-field-because-the-value-youre-trying-to-apply-is-not-valid-or-would-break-a-data-integrity-rule-error
    Best regards.
    Thanks
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How can I read the data type of a field in an MS Access database

    I need to be able to determine if a field in an Access database is of a certain data type, and if it isn't, to change it to what it should be.
    I can't seem to find any way of reading the data type of any field in any table - can anyone give me a metod of getting this info?
    Thanks
    ..Bob

    Does <cfdbinfo> work for Access DBs?
    You might be better off asking this on a MS Access forum.  It's more of an Access issue than a CF one.
    Adam

Maybe you are looking for

  • Can external display damage the iBook

    I'm using my 14'iBook most of the time in my office and thinking now to connect the iBook to my LCD screen (via a KVM). Does anyone know if mirroring the screen on a external monitor can do any harm to the iBook?. By example due to overheating or dra

  • How i can know that document splitting is enable or not ?

    Hi experts, how i can check that document splitting enabled or not ? Is it necessary that only new g/l activated system can enable such features ? regards, Sanju M S

  • Discrepancy between the confirmation and deletion of qRFC-LUWs

    Hi experts, When I started PC to loading data from CRM system,data loading stopped.I check the Log. "discrepancy between the confirmation and deletion of qRFC-LUWs" (Message no. RSQU016) How to solve it? Thank you.

  • Why i cannot create group in OWA?

    I wish to create a personal contact group, i search help and forum saying that, there should be a +New and choose Create New Group. But my OWA only have + new contact. How to create a group?  

  • Vista Business not showing as valid OS for ordering Windows 7

    Around July 6 there was at least one thread that mentioned when trying to order windows 7 upgrade for Pavilion Elite e9150t (product NY810AV) with Vista Business factory installed, the only current operating system in the dropdown is Vista Home Premi