Load Combo Box from MS Access

Me and a co-worker are trying to learn the Designer for a proof of concept (yes, that means newbies). We are currently struggling with loading a dropdown combo box from a table in an MS Access database. We have the connection set up and the field assigned to the control. It populates with the first record from the table, but clicking on the dropdown button does nothing. Is it only populating with one record? Is there a property on the control that is not allowing the list to expand?
I saw another thread in this forum on this topic and the last entry in the thread included the phrase "I GAVE UP" - not very encouraging. This functionality is a must-have and seems pretty basic.
Any advice?

I have been trying this using a Data Drop-down List and I cannot get it work. I have a data connection set up and instead of selecting Table from the choice I used an SQL query to select only one column in the table. There are three lines in the script some of which are confusing to me.<br /><br />var sDataConnectionName = "DataConnection"; //I got this one. it was easy<br />var sColHiddenValue = "<value>";<br />var sColDisplayText = "<value>";<br /><br />The last two I'm really not sure what to put there. I tried putting the name of the table column in place of each of "<value>". but it doesn't work.<br /><br />What else do I need to do to get it to work?

Similar Messages

  • How to display data in combo box from xml file.

    Hi All,
            I have the data in xml file.
      <jukebox>
        <song>
            <title>When the Levee Breaks</title>
            <artist>Kansas Joe and Memphis Minnie</artist>
            <url>delhi601(www.songs.pk).mp3</url>
        </song>
        <song>
            <title>Better Leave that Stuff Alone</title>
            <artist>Will Shade</artist>
            <url>delhi601(www.songs.pk).mp3</url>
        </song>
        <song>
            <title>Walk Right In</title>
            <artist>Cannon's Jug Stompers</artist>
            <url>delhi601(www.songs.pk).mp3</url>
        </song>
    </jukebox>
    and i want to display the only url in combo box list. for that how can load this xml file and how can i show.
    Can any one help me.
    thanks
    Raghu.

    Raghuvasa,
    Get the XML file data into an XML variable in your code, say var jukebox: xml. Then do
    combo.dataProvider = jukebox.song.url
    or as a shortcut
    combo.dataProvider = jukebox.descendants("url")
    The latter will pull out elements with tag name url at any depth in the xml structure, so sometimes you have to be careful, but in your case there should be no problem.
    Richard

  • How Offiline Data loading is possible from MS Access DB to Oracle DM

    HI All,
    I am new to Oracle.
    I am trying to migrate few tables from MS Access DB to Oracle DB (10g)
    I have used the migration utility from the Sql Developer tool.
    I was successful in creating the schema and also transferring the data for tables.
    But if my data in Access DB is updated everyday then how am i suppose to link this to newly created oracle tables?
    Is there any way to do this?
    And if i want to load the Oracle tables offline using "Generate Offline Data Move Scripts" option in sql developer then how do i do it?
    I tried using the option "Generate Data Move Scripts" right click option on converted object then the utility created few files on my local machine.
    I am not able to make my way fwd.
    Please help me.
    regards,
    Sushil

    Hi Sushil,
    I will try to address each of your questions:
    Q: "if my data in Access DB is updated everyday then how am i suppose to link this to newly created oracle tables? Is there any way to do this?"
    A: Depending on your reasons for maintaining the use of the MS Access database, you have two options.
    1. lf you are continuing to use the MS Access database because the application front end is MS Access forms & reports then you could just create linked tables to the newly migrated Oracle tables. Doing so will mean that any data modified via the frond end forms & reports will be saved directly in the Oracle database.
    2. If you wish to continue saving data to the MS Access database, then transfer it to the Oracle database, then you can just use the "Migrate Data" option in Oracle SQL Developer Migration Workbench to carry out this task. You just need to ensure that you've an open connection to your migration repository, and have the converted model for the migrated database. You will then just transfer the data online, like you have already done.
    Q: "And if i want to load the Oracle tables offline using "Generate Offline Data Move Scripts" option in sql developer then how do i do it?"
    A: To migrate your MS Access data offline, you need to do the following:
    1. Run the Exporter tool for MS Access, and select the "Export for Oracle SQL Developer" option. On the second screen of the tool, browse to the location of your MDB file, provide a location for the output directory and ensure you select the "Export Table Data" option before you click the "Export" button. This option generates a .DAT file for each table containing data in your MDB file.
    2. In Oracle SQL Developer, once you have carried out your migration, select the Migration > Script Generation > Generate Data Move Scripts menu item and select the Converted Model to generate the scripts for. An "MSAccess" folder will be generated in the path specified in the "Generate Offline Data Move Files" dialog.
    3. Navigate to the "MSAccess" folder generated in step 2, and this folder should contain a "oracle_ctl.bat" file, which
    for your converted model.
    4. Edit the "oracle_ctl.bat" file and update the script to replace <Username>/<Password> with the actual username/password combination required to connect to the migrated schema e.g. for a migrated Northwind database, this combination would be northwind/northwind. Save the changes to the file.
    5. Copy the .DAT files generated in step 1 to the /MSAccess/Oracle folder. The .ctl files refer to the .DAT file in order to load the data into Oracle using SQL*Loader.
    6. Open each of the .ctl files and check the file name referenced on the 2nd line of the file e.g. infile '[Categories].null', where the file name is "Categories.null". The ".null" part must be updated to ".dat". This is a known issue and a fix for this will be available in a future release of the Oracle SQL Developer Migration Workbench. Save the changes to the .ctl files.
    7. Open up a Command Prompt & navigate to the /MSAccess folder, and run the "oracle_ctl.bat" file to load the data into the Oracle database tables. If you experience any issues during this process, check the output in the command prompt & try to resolve any reported issues. If you are unable to do so, please refer to the Migration Workbench forum - Database and Application Migrations If you cannot find a solution from the existing threads, please post a new thread, giving the full syntax of any reported error messages.
    I hope this helps.
    Regards,
    Hilary

  • Populate Combo box  from recordgroup

    I made a procedure to Get the values for a combo box these procedure send the values to another procedure that create a recordgroup and populate the recordgroup and the list. I'm not having errors at compilation time but the list is empty and I have values entered. What would it be.

    Eunice,
    did you call populate_list('<user_list>',<recordgroup>) ?
    Please provide code snippets.
    Frank

  • Create combo box from another

    I currently have a combo box in my movie. The selections are 1, 2, 3,  and 4. I would like to generate another X combo boxes of the same structure based on that number. I.e. Someone choose 2 in ComboBoxA. So 2 of ComboxB's are generated below that.
    Can someone help with the syntax?
    Thanks,
    Brandon

    import mx.controls.ComboBox;
    var tl:MovieClip = this;
    var lo:Object = new Object();
    lo.close = function(eobj:Object) {
        for (var i = 0; i<eobj.target.selectedItem.label; i++) {
            var cba:ComboBox = tl.createClassObject(mx.controls.ComboBox,"cb_"+i,i);
            cba._x = cb._x;
            cba._y = cb._y+(i+1)*cba._height;
            cba.dataProvider = [whatever];
    cb.addEventListener("close",lo);

  • Getting the value of a combo box from a button

    Hi everyone, i wondered if anyone knew how to get a system combobox value from the item pressed event of a button.  The code below only gets the last value rather than the one currently selected. 
    Case SAPbouiCOM.BoEventTypes.et_COMBO_SELECT
                        If pVal.ItemUID = "3" And SAPbouiCOM.BoEventTypes.et_COMBO_SELECT Then
                            oCombo = oForm.Items.Item("3").Specific
                            ComboBoxValue = oCombo.Selected.Value
                        End If
    If pVal.ItemUID = "ViewDocBtn" And SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED Then
                            SBO_Application.MessageBox("ComboBox:" & ComboBoxValue
                        End If
    Has anyone got any idea why it is pulling out the last selected combobox value rather than the current one?
    Thanks
    Sally

    I solved this problem by using description

  • Error when populating combo box

    I tried to display my data in combo box from my access table but my combo box is empty. Here's my code:
    <% String temp="";     
         Connection conn = null;
         try
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              conn = DriverManager.getConnection("jdbc:odbc:admin_management");
              Statement stmt = conn.createStatement();
              ResultSet rs = stmt.executeQuery("SELECT Virtual_host_name FROM Server_Info");
    %>
    <select name="Server_available">
    <%
    while (rs.next()) {
    temp= rs.getString("Virtual_host_name"); %>
    <%System.out.println("<OPTION VALUE=" + temp + ">" + temp + "\n");%>
    <%}%>
    </select>
    <!-- HEADER STARTS HERE--->
    <%
         catch(SQLException e)
              //out.println("SQLException: " + e.getMessage() + "<BR>");
              while((e = e.getNextException()) != null)
              out.println(e.getMessage() + "<BR>");
         catch(ClassNotFoundException e)
              out.println("ClassNotFoundException: " + e.getMessage() + "<BR>");
         finally
              if(conn != null)
         try
              conn.close();
         catch (Exception ignored) {}
    %>
    Please help me asap. thanks!!

    Instead of "System.out.println" try using "out.println"

  • How do I populate the choices in a Combo Box in a PDF Form from an Excel spreadsheet or text file?

    Pleasel let me know if there is a way to copy and paste choices for a Combo Box from an Excel spreadsheet or text file.  I have over 250 values I'd like to add and don't trust my typing!
    Thanks for the help!
    Ken K. - 2191

    Yes, using the field.getItemAt method: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.745.html
    E.g.:
    var aItems = [];
    var f = getField("combo1");
    for (var i = 0; i < f.numItems; i++) {
        aItems[i] = f.getItemAt(i);
    If there are export values you need to decide how to use the optional bExportValue parameter.

  • Loading data only from access

    Hi,
    I just want to load data only from MS Access tables to oracle tables.I already have oracle tables. Can i do this with Oracle Migration workbench.
    Thanks

    Hi,
    The Oracle Migration Workbench can be used to migrate table data from your MS Access to your migrated Oracle database schema. The data can be transferred either online, using the Migration Wizard of the workbench or offline using SQL*Loader scripts generated by the workbench, to copy data from the source database to your destination Oracle database.
    You mention that you already have the Oracle tables. Did you use the migration workbench to migrate your Access MDB file to Oracle?
    If so, then you can do the following to load your data into the Oracle database using the offline capture method:
    1. Use the Exporter for MS Access tool (omwb<version>.mde) to extract the data from your Access MDB file. This generates .DAT files containing the table data.
    2. Launch the workbench, pointing to the repository containing the source and oracle model information for your Access MDB file. This will be the repository you used during the initial migration of your Access database to Oracle.
    3. Select the Oracle Model tab, then select a user schema in the Oracle Model that you want to migrate the data to.
    4. Select the associated "Tables" node of the tree.
    5. From the "Objects" menu, select the "Generate SQL*Loader Scripts.
    6. Use the generated SQL*Loader scripts to load the Access data, contained in the .DAT files generated in step 1 above, into the Oracle database.
    For further information on the steps outlined above, please refer to Chapter 6 Migration the Database of the Oracle Migration Workbench User's Guide, specifically
    section "Transferring the Data Offline". The User's Guide can be obtained in the /omwb/docs/usersguide folder of your omwb installation, or via the Help | User's Guide of the workbench.
    I hope this helps.
    Regards,
    Hilary

  • Hide a data column in combo box?

    I want to load a combo box from a database with two values per row (add.Item ?) but I only want one value to be see by the end-user.
    Example:
    Hidden | Shown
    12320  |  Green
    19210  |  Red
    72622  |  Yellow
    The user will see the colors but not the numeric values. The numeric values are actually the auto_id for each color in the database. I want to use the auto_id when I save the user's choice to another table instead of the color name.
    Right now as soon as the use selects a color I hit the database for the auto_id number - that can't be good.
    Thanks,
    ADawn
    ADawn

    Hello,
    You would set the data source for the ComboBox that has your data then set DisplayMember to the field to show in the ComboBox along with ValueMember set to the hidden field. Now say in a button click event use ComboBox1.SelectedValue to get the hidden field,
    cast as an integer if that is the data type of the hidden field.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Connected Combo box problem !   please help me

    Dear Friends....!
    I am developing project in which i have 3 combo :
    1) District Selection
    2) Taluka Selection
    3) Village Selection
    Depend on village selection , perticular persons on that village is displayed on the page.
    This values must be fetched from DATABASE !
    <b> I tried with JAVASCRIPT but with it i can connect two combo and
    can't access database inside javascript. WHAT IS THE SOLUTION EXCEPT AJAX ( That i don't KNOW ) </b>
    may be i can put 3 combo together and on first OnChange event
    i can submit page and process another page and put values in
    another combo and forward page to combo page again.
    i am very much confused HELP ME !
    please i don't know AJAX else problem would be easily solved.
    EVEN I CAN"T MANUALLY PUT DATA IN JAVASCRIPT bcoz my villages
    are more than 400.
    how to put java database code in javascript OnChange event ???
    to fetch data of another combo ?
    HELP WITH EASY SOLUTION.
    Thanks
    GHanshyam
    ================================
    SOLUTION FOR TWO COMBO
    function populate(o) {
      d=document.getElementById('de');
      if(!d){return;}                
      var mitems=new Array();
      mitems['Choose']=[''];
      mitems['Salads']=['Select Item','Tuna Salad','Cesar Salad','Green Salad','Prawn Salad'];
      mitems['Main Courses']=['Select Item','Filet Mignon','Porterhouse','Flank','T-Bone'];
      mitems['Drinks']=['Select Item','Milkshake','Soda','Mixed Drink','Juice'];
      mitems['Desserts']=['Select Item','Ice Cream','Fresh Fruit','Pie'];
      mitems['Snacks']=['Select Item','Brownies','Cookies','Potato Chips'];
      d.options.length=0;
      cur=mitems[o.options[o.selectedIndex].value];
      if(!cur){return;}
      d.options.length=cur.length;
      for(var i=0;i<cur.length;i++) {
        d.options.text=cur[i];
    d.options[i].value=cur[i];
    <!-- Paste this code into the HEAD section of your HTML document.
    You may need to change the path of the file. -->
    <script type="text/javascript" src="dropdownBox.js"></script>
    <!-- Paste this code into the BODY section of your HTML document -->
    <form action="" method="get">
    <label for="or">Our menu:</label>
    <select name="or" id="or" onchange="populate(this)">
    <option value="Choose">Select from the Menu</option>
    <option value="Salads">Salads</option>
    <option value="Main Courses">Main Courses</option>
    <option value="Drinks">Drinks</option>
    <option value="Deserts">Deserts</option>
    <option value="Snacks">Snacks</option>
    </select>
    <label for="de">Select:</label>
    <select name="de" id="de"></select>
    <input type="submit" value="Show me" />
    </form>
    <p><div align="center">
    </div><p>

    may be i can put 3 combo together and on first
    OnChange event
    i can submit page and process another page and put
    values in
    another combo and forward page to combo page again.Almost there. What you should do is submit the page on the onChange event of the combo box; but submit to the same JSP. Then, depending on the values that each of the combo boxes contains, run a query for villages in that District and under that Talluka.
    And populate the third combo box. If any one of the ( first two ) boxes is empty i.e user didnt' select a value, then you'll automatically get no value for the combo boxes from the query.
    Something like this
    <%
        String selectedDistrict = request.getParameter("districtcombobox");
        String selectedTalluka = request.getParameter("tallukacombobox");
        //make sure you don't nulls
        selectedDistrict = selectedDistrict == null?"":selectedDistrict;
        selectedTalluka = selectedTalluka == null?"":selectedTalluka;
        PreparedStatement psFetchTallukas = con.prepareStatement("select tallukaname from tallukas where tallukadistrict = ?");
        PreparedStatement psFetchVillages = con.prepareStatement("select villagename from villages where villagetaluka = ?");
         psFetchTallukas.setString(1, selectedDistrict);
         psFetchVillages.setString(1, selectedTalluka);
       rsTallukas = psFetchTallukas.executeQuery();
       rsVillages = psFetchVillages.executeQuery();
    //now, print out your <option> elements under the corresponding <select> tags for each of the 3 select boxes
    %>For your onChange event you don't need to do anything except call form.submit() where the action should be the same JSP. In case your form is going to be submitted to another page on the final submit i.e after selecting all required values; then in the onChange event handler, before the submit(), you should change the action property of the form to the same page and then submit.

  • Fill combo box  fro database using jsf

    dear all,
    i am new to JSF and i want to fill a JSF combo box from a database
    can anyone help me ??
    thanks in advance for help

    use this tag inside  <h:selectCombobox>
    <f:selectItems value="#{myBean.valueArrayFromDB}"/>

  • Problem pre-populating a combo box

    Hello,
    I am having problems pre-populating a combo box from a process.
    This combo box field exists in the OIM User Form and in another process form.
    Both combo box fields are populated from the same Lookup Definition: Lookup.Jazztel.TipoDeDocumento which looks like this:
    Code Key Decode
    1      DNI (NIF)
    2     Pasaporte
    4     Visado
    6     Nº Identificación de Extranjero
    9     C.I.F.
    I've tried these methods to pre-populate the combo box:
    * Using an adapter with a SET VARIABLE Logic Task (this adapter returns the code key that is selected in the OIM User form).
    * Using an adapter that returns the decode field from the code key and pass it to the Process combo box.
    In these cases, the process form combo box is not pre-populated correctly. It always shows C.I.F.
    I tried modifying the combo box in the following way:
    Code Key Decode
    DNI (NIF)      DNI (NIF)
    Pasaporte      Pasaporte
    Visado     Visado
    Nº Identificación de Extranjero Nº Identificación de Extranjero
    C.I.F. C.I.F.
    and it get pre-populated correctly.
    I need the code keys to be numbers. Does anyone know how can a combo like this be pre-populated?
    Moreover and curiously, the process form combo box appears ordered alphabetically (according to the decode fields):
    Code Key Decode
    9     C.I.F.
    1      DNI (NIF)
    6     Nº Identificación de Extranjero
    2     Pasaporte
    4     Visado
    and the OIM User Form Combo box, appears ordered numerically (according to the code key numerical order):
    Code Key Decode
    1      DNI (NIF)
    2     Pasaporte
    4     Visado
    6     Nº Identificación de Extranjero
    9     C.I.F.
    Does anyone know why?
    Thank you very much

    Try prepopulate combobox by lookup code.
    But it must displayed as decode.

  • Language chooser combo box

    Dear all,
    I have read the guide on to create language chooser combo box
    from here:
    http://livedocs.adobe.com/flex/3/html/l10n_4.html#159225
    But until now I can not make it to work. Is there any other
    thing I need to configure which is not written in the guide? Please
    give me some insights about this.
    Many thanks

    I need to use:
    {resourceManager.getString('Admin','username')}
    instead of
    @Resource(key='user,' bundle='Admin')
    to be able to change the language during runtime :-)

  • Access 2010 - How to display data from a table into a text box upon combo box selection?

    Hi
    I have a a table with 5 columns: month, year, USD, SGD, BAHT.
    I created a form with a combo box for selection of the month and year, and I would like to set adjacent text boxes to show USD, SGD, BAHT information. How can i go about doing that?
    From the Q&A here, most of them uses the function similar to this "=[Combo0].[Column](1)" to show the data in the text box, but this would require the combo box to list a whole bunch of details if i were to add in more currency values to the
    table. Is it possible to not show this information in the combo box, but still populate data in the textboxes base on a selection on only the "month" and "year" in the combo box.

    Hi,
    According to your description, my understanding is that you want to show only the month/year in the combo box, we can choose the date, and it will display the value of USD/SGD/BAHT based on the month/year.
    If it is, I recommend you try the steps:
    Create a form based on your data source table>Add the combo box>combo box wizard>Find a record on my form based on the value I selected my combo box>Add mouth and year to selected fields
    http://office.microsoft.com/en-us/access-help/create-a-list-of-choices-by-using-a-list-box-or-combo-box-HA010113052.aspx
    If I misunderstand something, please let me know. We may upload some screenshots or a sample through OneDrive.
    Regards,
    George Zhao
    TechNet Community Support

Maybe you are looking for

  • IPod Nano Freezes when unplugged with static type line on screen

    I've seen a lot about the "white screen" but mine is slightly different. It's a 2nd gen, 4GB. When plugged in, everything works fine. Syncs up, plays music, etc. As soon as it's unplugged, it gets a static looking bar across the screen and everything

  • Why to develop Sharepoint Apps, What is the business Justification

    Hi , SharePoint 2013 has released the app model. But I do not understand why should I ever go ahead and build an app. My Client has Sharepoint 2013 installed on premise. Then what benefit or advantage will be achieved if I create an app. Either share

  • Adobe Acrobat 7.0 Standard will not open

    I downloaded Adobe Acrobat 7.0 Standard in July 2005. It has worked fine with no bugs. I really do not need to upgrade but now have a problem. I have had some other issues with my computer and now when I try to open this program, I get a window that

  • Duplicate Item Name

    Hello all, I have a widget in Captivate 5.0 that pulls in an image based on the name of the slide.  The widget is named according to a convention i created.  W_02_0004_02 This would signify (Module 02 - Slide 0004 - Image 02) I had incorrectly labele

  • Thunderbird won't import events from outlook

    I moved my e-mail and contacts from Outlook to TB (using PST Converter), but importing events doesn't work. Converter creates a .ics file. When I try to import that file, Thunderbird grinds away for a couple minutes, then I get a message about some s