Cascading ComboBoxes in Access

I have created a form with two combo boxes. The value that is selected in the first combo box should determine a selected range of values that appear in the second combo box (typical cascading combo box situation).
The first combo box is to select the business operation. The second combo box gives the teams within the business operation. I built a table with a list of business operations called TblBusinessOperation (Sales, Marketing, Risk as fields) and then a table
for each business operation with lists of the teams in each of them eg TblSales (team 1, team 2 etc), TblMarketing (team 1, team 2 etc), TblRisk and so on. I defined relationships for these tables with the rest of the database using referential integrity which
seem to be fine.
Then After creating each combo box in the form, I went into design view and opened up form properties. Selecting the first business operation combo box, i went to the Event tab in the properties window and in the After Event field, entered the following
code:
Private Sub TblBusinessOperation After Update()
If No Error Resume Next
Select Case 'TblBusiness Operation'
Case 'Sales'
Cbo.Team = Row Source.Value 'Sales'
Case 'Marketing'
Cbo.Team = Row Source.Value 'Marketing'
Requery.cboteam
End Sub
I save the code and return to form view but when I select a value from the business operation combo box the team combo box just shows ALL the teams from ALL the business operations so the cascading hasn't worked. What is going wrong?
Thanks in advance
CG

Hi CG,
The problem in your case may be that you didn't properly set the RowSource property of the second ComboBox. As you didn't post the complete and correct code  in the AfterUpdate event handler of the first ComboBox, I'm not quite sure about this.
Maybe you can create a sample Access database, upload to OneDrive so that I can reproduce your problem and give you a solution in your way.
In my opinion, a better solution would be using a Recordset to populate the second ComboBox instead of using the default RowSource of the control. Because there may be some repeated team name in the other tables. To use ADODB RecordSet, you can get
a distinct list of the team names and populate the second ComboBox. This can be done all in the VBA code, not very complicated. You can refer to the sample code in this thread if you want:
Combobox rowsource - set to recordset, or
a query that dynamically iterates values
It would be more flexible to use SQL statement to retrieve the second ComboBox's source items you want. For how to use the Recordset, this MSDN document should help:
https://msdn.microsoft.com/en-us/library/office/ff820966(v=office.15).aspx
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Is there a way to create a Cascading ComboBox populated by an SQL/SDK query to a table? Referenced Lists too hard to maintain.

    Background:
    I’m looking for an alternative to using referenced Enum (aka Lists) for “dropdowns” (aka “ComboBoxes”) in the forms.
    The reason for looking for an alternative mechanism for drop-downs was that using referenced Enums
     ran into issues when the List items in the enum were to be updated:
    The SCSM Console refuses to allow for the deletion of the referenced 
    Enum MP when there are other MPs referring to it.
    The SCSM Console doesn’t allow the editing of a sealed Enum MP’s List items.
    One has to hand-add new list items to the Enum MP’s XML.
    Importing that new Enum MP over the old one causes views to not show data for the changed Enum.
    The Customer wants the dropdown choices to be dynamically updated.
    The Customer also wants this to be user-friendly “for the masses”, meaning that hand-editing XML and tinkering with the SCSM Console is undesirable.
    We had enumeration lists with hundreds of choices, making hand-entry, using the SCSM Console, inordinately lengthy, error prone, and, frankly, tedious.
    What I’m looking for:
    The deeper requirements implied in these three Use Cases below are:
    The system has to be easily maintainable.
    The system has to reflect the latest changes in data.
    The system has to be usable by “the masses”.
    Large sets [200+]  of choices have to be machine importable.
     [Note: one reason why enums are not desirable is that we have had
    hundreds of choices to add and a manual approach was not feasible]
    Not as a prescription for a solution, but as a way of showing what I am looking for through an example-that-says-more-than-a-thousand-words: I want to implement the Service Manager usage-equivalent of a
     “Cascading Dropdown” (aka “Cascading ComboBoxes”) instead of using Enums. It doesn’t have to use
    Cascading Dropdowns but allow for the back-end ease-of-use that comes with it.
    Use Cases:
    Use Case 01:  A User wants to edit the contents of a Windows Computer CI record.
    Say that I want to change the field Business Unit and its associated field
    Customer
    You pick one element from a list of Business Unit choices.
    The act of clicking on that field triggers a SQL search through a table of all current customers and populates the dropdown for the field
    Business Unit.
    Say, for the sake of an example, you pick the Business Unit “Accenture AO”.
    The act of chosing “Accenture AO” triggers another SQL search through a table to find all
     Customer values that belong to the Business Unit “Accenture AO” and that filtered set is used to populate the dropdown for
    Customer.
    The user chooses “Planet Express”.
    The act of chosing “Planet Express” triggers a final SQL search through a table to find what the two-letter code is for “Accenture AO” + “Planet Express”, say “PE”. That value is used to set a
    hidden field.
    Use Case 02: Maintaining the tables used to populate Business Unit and
    Customer lists
    Say I’m an Admin who wants to update Business Unit and Customer
    lists as there have been the creation of a new Business Unit “Accenture Galactic” and there have been new Customers ”Klingon Karrier”, “Romulan Relaxair”, and “Federation Fun” and, say,
    two-hundred other Customers, with their two-letter codes “KK”,”RR”,”FF”…etc…etc..etc… respectively.
    I open a table editor for Business Unit and Customers.
    I have, say a CSV that has the Business Unit, Customer, and Code field and 200+ records
    I import using some automated mechanism the 200+ records.
    Use Case 01-B: A user immediately has their choices updated.
    Say that I want to change the field Business Unit and its associated field
    Customer
    You pick one element from a list of Business Unit choices.
    The act of clicking on that field triggers a SQL search through a table of all current customers and populates the dropdown for the field
    Business Unit.
    Say, for the sake of an example, you pick the Business Unit “Accenture Galactic”.
    The act of chosing “Accenture Galactic” triggers another SQL search through a table to find all
     Customer values that belong to the Business Unit “Accenture Galactic” and that filtered set is used to populate the dropdown for
    Customer.
    The user chooses “Federation Fun”.
    The act of chosing “Federation Fun” triggers a final SQL search through a table to find what the two-letter code is for “Accenture Galactic” + “Federation Fun”, say “PE”. That value is used to set a
    hidden field: “FF”

    consider
    http://blog.scsmsolutions.com/2011/08/create-custom-user-control-for-scsm-2010/ and http://social.technet.microsoft.com/Forums/en-US/09813153-a4d0-4bce-8d28-3ccc63bd72a1/resources-for-adding-custom-wpf-controls-to-service-manager-forms?forum=customization
    As for the Data Typing, the class property would be a String type, which maps to NVARCHAR in SQL, so any unicode characters, including XML (i'd recommend keeping it below 4000 for performance reasons). look to how the UserInput control works in Service Requests. 
    I would recommend a class extension woth a single string property to store the data on the windows computer class, and a separate stand-alone class to store your "options". no relationship should be implied. 

  • Web App Cascading Controls

    I am trying to implement this: http://blogs.office.com/2013/08/01/introducing-a-new-user-experience-feature-in-access-web-apps-cascading-controls/
    I have a table Encounters with two rows: M1
    (lookup to OMed) and M1LotNumber (ShortText).
    There is another table OMed Attributes which has rows: Med (lookup to OMed) and Lot Number (ShortText).
    In this view, M1 is an autocomplete and M1LotNumber is a dropdown. I want M1LotNumber to show items related to the M1 lookup value. This works flawlessly.
    My problem is that once selected, the dropdown value will not save to the M1LotNumber row. Even though control source is set, when I save the view, the lot number does not save. Furthermore, if I open a saved record and change ONLY the M1LotNumber, the view
    does not let me save - this tells me that Access is not recognizing the control source.
    What about my setup is wrong?

    My problem is that once selected, the dropdown value will not save to the M1LotNumber row. Even though control source is set, when I save the view, the lot number does not save. Furthermore, if I open a saved record and change ONLY the M1LotNumber, the view
    does not let me save - this tells me that Access is not recognizing the control source.
    What about my setup is wrong?
    Hi Dr.Cole,
    Is there any error message when you click on the Save button in the web page? I can successfully save the cascading ComboBox's value into the current table without any problem.
    If there's some errors pop up in the web page, in ordinary circumstances, the problem is that you didn't correctly set those fields for the cascading ComboBox, "Bound Field", "Display Field" or "Related Field" (especially the
    "Related Field", you need to set it to the M1's control's bound field). So please try to change these fields.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How execute with params at selection in a combobox?

    I have this:
    A data control for the payload of BPM:
    <PROYECT_ID/>
    <TASK_ID/>
    <CATEGORY_ID/>
    Was needed convert them into combobox. I did something like this: http://blogs.oracle.com/shay/entry/adf_query_with_parameters_and
    All comboboxs work, but they need dependencies between their choices.
    The task depends on proyect, and the category depends on proyect AND task.
    In addition I have 3 view objects: ProyectsView, TasksView and CategoriesView. I edited TasksView query, adding WHERE TasksView.PROYECT_ID = :ProyectID.
    How can I do a executeWithParams when the proyects combobox changes?
    Thanks in advance.

    You can use a value change listener on combobox and access the iterator binding and execute the query. Make sure you use the getNewValue(). Also this can be accomplished by making using cascading lov's, if you use this you do not have to manually query them.
    http://oracamp.com/jdevadf-sample-cascading-lovs-oracle-adf-11g-update-1

  • How to migrate ACCESS2000 ON UPDATE CASCADE to ORACLE 8i ?

    Hi all,
    I use ON UPDATE CASCADE constraint in ACCESS database.
    When I use the Access WorkBench, ORACLE Said that ON UPDATE
    CASCADE are not supported.
    Is there any solution ?
    Regards
    Pascal

    Check <a href="https://websmp209.sap-ag.de/osdbmigration">OS-DB-Migration Site in SAP Service Marketplace</a>
    Here (Goto Media Library) you'll also find the actual <a href="https://websmp209.sap-ag.de/~sapidb/011000358700002608772002E.pdf">SAP OS/DB Migration Check Planning Guide</a>
    After checking out the ressources mentioned above you can't be more specific...

  • LOVs in Business View Mgr

    Hi Friends,
    I have created a List of Values in Business View Manager by creating Connection-> Data Foundation (SQL based) -> Business Element -> Business View -> LOV.
    However, I have been asked to schedule this LOV in Business View.
    I have tested this LOV by using this in a Crystal report and found that the list is automatically getting updated with new values from the table in the database. I even changed ( deleted/inserted) values in the base/source table and found that the list was still getting updated when used in Crystal Reports without scheduling the LOV.
    My question is that do I still need to schedule my LOV ? If yes, then why ?
    Why is the list retrieving the latest results from the base table even when I have not scheduled it to be refreshed yet ? I was expecting to see the old list of values when using inside Crystal reports.
    Any help is appreciated.

    If you're interested in getting the best performance for your DCP, try this article:
    [Crystal Reports XI R1 And R2 Dynamic Cascading Prompt Performance 1.8|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e073744a-693f-2b10-b5b8-b216437cb007]
    I'd recommend the chapter "Cascading LOV Data Access Tuning", it explains how you can configure your LOV to ensure on-demand access for each level of the LOV.

  • LOVs in Business View Manager

    Hi All,
    I know the implementation of dynamic cascading parameters using list of values in Crystal XI.
    But i need some information regarding Business View Manager.
    Country > Region > City - This is my desired cascading parameter. For creating this parameter, what should be my data foundation?
    Select country,region,city from customer
    Can i use this query in my data foundation? I think this will duplicate the values inside country and region...
    Please help me in this issue....
    Thanks,
    Meena

    If you're interested in getting the best performance for your DCP, try this article:
    [Crystal Reports XI R1 And R2 Dynamic Cascading Prompt Performance 1.8|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e073744a-693f-2b10-b5b8-b216437cb007]
    I'd recommend the chapter "Cascading LOV Data Access Tuning", it explains how you can configure your LOV to ensure on-demand access for each level of the LOV.

  • Firefox Ver. 34.0.5 fails to render Youtube website. CSS not working. Ideas?

    Youtube.com website not rendering (CSS requests are not working), and videos not accessable. This is not related to any plugin issues, such as Flash, etc. The youtube.com main page renders like an experimental HTML document, with no style-sheet info. I've attached screen images to show what it looks like.
    I found one other similiar situation, in Arch-Linux, where the problem turned out to be a DNS configuration issue. I have tried many DNS configurations, and confirm I can get to every other website, and they seem to render ok. I can even watch videos on other websites, if I enable the Flash plugin. I have removed and re-installed Firefox at least three times, as I have it working correctly on several other machines (LInux and Windows ). The problem machine runs Windows XP, SP3, and is an older HP box. Note that all other websites seem to render correctly, and videos are watchable. It appears to be related to i.ytimg.com CSS (cascading style sheet) access just not working, but only for Youtube. Any ideas? Three detailed screen captures are provided below. I tried removing the firewall restrictions, made no difference. I also did a detailed scan for virus issues and malware, but no evidence of any found. I'm stymied. Any suggestions appreciated.
    One issue might be the recent TOR browser bundle, which I have installed on the machine. It works fine, and renders Youtube.com, but videos are slow. TOR documentation and technical reports assert that TOR-browser does not interact
    with existing browsers (it is Firefox 31.xx, I think.) TOR does establish proxy settings, and I have confirmed the Ver. 34 non-TOR Firefox is configured to not use any proxy setting.
    I am running out of ideas here. This behaviour is strange. Any suggestions how I can detail debug Firefox in operation as it does this broken rendering? The error even affects earlier versions of Firefox.

    *** SOLVED *** !!!
    Got it!
    I have spent *days* on this, because it just bugged me so much!
    FOund it by searching and reading all the Mozilla FIrefox support forums.
    Problem was an old hard-coded fix that I put into my HOSTS file, on my Windows XP, SP3 machine. Specifically, I had experienced hang issues with a site called "i.ytimg.com", which I believe is the static cache for Google/Youtube stuff. I tracked this error down to failures of security certificates, but confirmed my security cert store was isometric between my machine cluster (they were all the damn same!)
    So, I had put two lines in the HOSTS file, to hard-code an IP address so that Google-youtube pages would not hang up waiting for "i.ytimg.com"
    Well, of course, Google/Youtube is now using different locations, or akami servers or some damn thing...
    The fix just involved removing these two hard-coded lines from my HOSTS file. I just commented the old fix out, and now everything works.
    <pre>
    # --- two lines added to fix i.ytimg.com hang problem
    # 74.125.162.39 static.cache.l.google.com s.ytimg.com
    # 74.125.162.39 static.cache.l.google.com i.ytimg.com
    </pre>
    (The # symbol is used to make a comment in hosts file... )
    On Windows XP, XP3, the "hosts" file is typically located in:
    C:\WINDOWS\system32\drivers\etc\hosts
    If you are having goofy problems with some youtube/google webpages
    not rendering, or generating SSL (bad_certificate) errors, check your
    "hosts" file, and ensure no ip redirection has been slotted in there
    from a while back.
    Hope this helps others...
    - Mark Langdon, GEMESYS Ltd.

  • Cfgrid prepopulate cfselect

    I have trouble prepolualting cfselect in the flash form. When
    i click on the cfgrid I want specific drop down to be prepopulated
    (i have 18 of them) based on the type.
    Here is my cfgrid
    <cfgrid name="myGrid" query="tempQuery" height="445"
    width="200" rowheaders="false" onchange="#getComboBoxValue#">
    <cfif menuQuery.menuID is not lloc>
    <cfgridcolumn name="menuID" header="menuID" display="no"
    />
    <cfgridcolumn name="label" header="label" />
    <!--- <cfgridcolumn name="link" header="link"
    />--->
    <cfset lloc= menuQuery.menuID>
    </cfif>
    </cfgrid>
    And here is the drop downs
    <cfloop index="i" list="#lLIst#">
    <cfscript>
    LoadaccessLevelType =
    createObject("component","Erik.maintenace").LoadaccessLevelType(#i#);
    </cfscript>
    <cfselect query="LoadaccessLevelType" value="accessLevel"
    display="description" name="access#i#" width="200"
    label="#LoadaccessLevelType.display#"/>
    </cfloop>
    Where lList is number from 1 to 18.
    My actionScript is here
    <cfsavecontent variable="getComboBoxValue">
    <cfloop query="TempQuery">
    <cfif TempQuery.accessType neq ''>
    //Set a temp variable to hold the current comboBox value
    var temp1;
    //Loop through all the comboBox values
    for(var i = 0; i < access#accessType#.length; i++){
    //if (myGrid.selectedItem.accessType == temp1) {
    //set the comboBox to the current index
    access#accessType#.selectedIndex=i;
    //set temp to the value of the comboBox
    temp1=access#accessType#.value;
    //if temp equals the selected clientID then stop looping
    through the comboBox
    if(temp1==myGrid.selectedItem.accessValue){
    break;
    </cfif>
    </cfloop>
    </cfsavecontent >

    There are too many things going on: function call on an
    object instance, actionscript function stored in a variable and the
    grid itself. It is difficult to debug. I would start by using an
    actual query to test the code.

  • Updating databae password in Business view manager and CMC

    Hi All ,
    We are carrying out a step of changing the database password on which the Infoview reports run.Currently the solution i know is to log on to Business View manager and change the password manually for each promopt. similarly i have to log on to CMC and go to report >Process>Database and enter the new password.
    We have 85 reports and their corresponding promopts. So we have to manually enter the password upto 150 times.
    Could you you please advise on a more efficient way to change the password.
    Thanks.

    If you're interested in getting the best performance for your DCP, try this article:
    [Crystal Reports XI R1 And R2 Dynamic Cascading Prompt Performance 1.8|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e073744a-693f-2b10-b5b8-b216437cb007]
    I'd recommend the chapter "Cascading LOV Data Access Tuning", it explains how you can configure your LOV to ensure on-demand access for each level of the LOV.

  • Cascading EA4500s and Guest Network access

    Hi, I hope esomone can help me here. I've got two EA4500 routers connected via ethernet. The primary router has DHCP enabled and the secondary has it disabled. IP address of primary is 192.168.1.1 and the secondary is 192.168.1.2.
    I have set up guest access on both routers however only the primary router allows users to connect. When out of range of the primary router but in range of the secondary router the network is visible but when you try to connect to it, it only gives limited or no connectivity message and can't connect to the internet.
    Is it possible for the guest network access to follow the same pattern as the secure network, i.e. the same network throughout the house?
    Regards
    Jon

    Cascading two routers should have correct parameters set. For instance, the Ethernet port of the secondary router should be connected to the ethernet port of the primary one, and the DHCP should be disabled on the second router. The ip address you've set are correct for the both routers. This thing shoud be done if the connection is LAN to LAN.
    By the way there are two types of cascading: Click here for info!
    For the Guest Network:
    Guest Network would only work if the the DHCP is enabled on your router. It means to say that on the type of setup you're doing which is LAN to LAN (DHCP disabled on the second router), Guest network would not work on the secondary router. If the connection is LAN to WAN, then both of the router should have Guest Network working.

  • Access cellRenderer textField in comboBox in AS3

    Just getting up to speed in AS3 now and I am having problems
    skinning a custom comboBox component.
    I have created all the custom skins for my component and
    added a custom font but the font is not centering itself correctly
    in the dropdown list at runtime (its about 1 or 2 pixels off in the
    y). I cannot seem to find a way to adjust the y position of the
    text in the dropdown list. I can use:
    my_c.dropdown.setRendererStyle("textPadding",2);
    ...but all that does is adjust the indent (x) value of the
    text.
    And adding the align property to my custom textFormat for the
    dropdown only aligns it in the horizontal space as well.
    How the heck to I adjust the vertical align in the cellRender
    in the dropdown list!?
    Any help is greatly appreciated.

    I found a solution for this issue, but i don't know wether this is a perfect method or not, but it's working fine.
    solution: -
    create a simple button and place a dynamic text field and skip the instant name for this field. you can access this dynamic text by index number.
    but if you have any visual effects on mouse overs then you need to assign the button label to all those stages in as3.
    code:
    //-----mous Up ----
    var samplebtn_doc:DisplayObjectContainer = samplebtn.upState as DisplayObjectContainer;
    var labelsamplebtn:TextField = samplebtn_doc.getChildAt(1) as TextField;
    labelsamplebtn.text = "new button label";
    //-----mous Over ----
    var samplebtn_over:DisplayObjectContainer = samplebtn.overState as DisplayObjectContainer;
    var labelsamplebtn_over:TextField = samplebtn_over.getChildAt(1) as TextField;
    labelsamplebtn_over.text = "new button label";
    //-----mous Down ----
    var samplebtn_down:DisplayObjectContainer = samplebtn.downState as DisplayObjectContainer;
    var labelsamplebtn_down:TextField = samplebtn_down.getChildAt(1) as TextField;
    labelsamplebtn_down.text = "new button label";

  • Use a combobox to list records in an access database

    Hi,
    I am trying to create a Word document that contains fields to display data from an Access table. I used the mail merge function.
    I want to add a combo box in the Word document that will hold the Invoice numbers generated in the Access database. The user then clicks on the invoice number in the combo box they want to print and the selected number with its related data must be displayed
    in the document.
    Currently, the mail merge document retrieves all the records (about 16 000 of them, and growing). The user has to step through them until the relevant data is displayed. This is time consuming.
    This is the very first time that I need to do it this way. My knowledge on Word is very limited. Is there some example available or can somebody direct me in the right direction?
    Thanks

    Hi Deon,
    You can use VBA code to populate a combobox, and show the needed record information in the document when the user select a combobox item. To connect to an Access database, ADO will help. Check this complete sample(you can paste this code snippet into
    the ThisDocument VBA editor to test):
    'Before open this document,
    'create an access db named test.accdb, and create a table UserInfo(ID,UserName,Age)
    Private Sub Document_Open()
    PopulateComboBox
    End Sub
    Private Sub ComboBox21_Change()
    ShowSelectedRecord ComboBox21.Text
    End Sub
    Sub PopulateComboBox()
    Dim dbConnectStr As String
    Dim conn As ADODB.Connection
    Dim sqlQuery As String
    Dim sqlCount As String
    Dim rsQuery As ADODB.Recordset
    Dim rsCount As ADODB.Recordset
    Dim userNames() As String
    dbConnectStr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\test.accdb;Persist Security Info=False;"
    sqlQuery = "Select UserName FROM UserInfo"
    sqlCount = "select count(UserName) as UsersCount from UserInfo"
    Set conn = New ADODB.Connection
    conn.ConnectionString = dbConnectStr
    conn.Open
    Set rsQuery = conn.Execute(sqlQuery)
    Set rsCount = conn.Execute(sqlCount)
    rsCount.MoveFirst
    i = rsCount!UsersCount
    ReDim userNames(1 To i)
    j = 1
    If Not (rsQuery.EOF And rsQuery.BOF) Then
    rsQuery.MoveFirst
    Do Until rsQuery.EOF = True
    UserName = rsQuery!UserName
    userNames(j) = UserName
    j = j + 1
    rsQuery.MoveNext
    Loop
    Else
    'do nothing
    End If
    rsQuery.Close
    rsCount.Close
    Set rsQuery = Nothing
    Set rsCount = Nothing
    ComboBox21.List = userNames
    End Sub
    Public Sub ShowSelectedRecord(SelectedUserName As String)
    Dim dbConnectStr As String
    Dim conn As ADODB.Connection
    Dim sqlQuery As String
    Dim rsQuery As ADODB.Recordset
    dbConnectStr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\test.accdb;Persist Security Info=False;"
    sqlQuery = "Select * FROM UserInfo where UserName='" & SelectedUserName & "'"
    Set conn = New ADODB.Connection
    conn.ConnectionString = dbConnectStr
    conn.Open
    Set rsQuery = conn.Execute(sqlQuery)
    If Not (rsQuery.EOF And rsQuery.BOF) Then
    rsQuery.MoveFirst
    Do Until rsQuery.EOF = True
    UserName = rsQuery!UserName
    Age = rsQuery!Age
    Application.ActiveDocument.Range(1).InsertAfter "UserName:" & UserName & " Age:" & Age
    rsQuery.MoveNext
    Loop
    Else
    'do nothing
    End If
    rsQuery.Close
    Set rsQuery = Nothing
    End Sub
    Besides VBA, you could also create a Word Add-in to connect to Access database and retrieve some data.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Everything works in cascade except I can't access downstream WRT160N

    I have a BEFSX41 Router as my main router.  A WRT160N V3 is cascaded downstream LAN port to LAN port.  It is all working just fine with one exception.  I cannot access the WRT160N setup pages. I think* its IP address is 192.168.1.2.  My browser's (Internet Explorer and Firefox) cannot connect via HTTP.  I can access the BEFSX41 at 192.168.1.1 with any machine in my network.  I cannot connect to the WRT160N with any machine. I cannot connect even with a PC connected directly to one of its LAN ports and nothing else connected.  A PC connected to the WRT160N (wired or wireless) connects to the Internet just fine when the system is all hooked up. 
    DHCP is enabled on the BEFSX41, I think it is disabled on the WRT160N but without access to its setup pages I can't tell for sure.  I have tried soft resets by powering the router on and off - no help.  I have not tried a hard reset as I am concerned that I will lose all my settings and won't be able to get them back.  When the system was put together two years ago it took several calls to Linksys tech support to get it all going.
    * I think it is 192.168.1.2 because Norton Security Suite's Network Security Map reports it that way.  My sketchy handwritten notes from 2 years ago also say 192.168.1.2 in some place but 192.168.2,1 in others.  Anyway, all the above aplies if I try ..2.1 instead of 1.2 when trying to access the WRT160N web page.
    Solved!
    Go to Solution.

    Mr/Ms. Dibbler – Thank you for your help. I reset the WRT160N to factory default and followed your instructions resetting it to 192.168.1.2 with wireless.  It all seems to be working well and I can access either router from any PC.  Now for some “fine tuning”.
    I guessed at some of the wireless settings and would appreciate your review:
    1) Network Mode – I used Mixed rather than Wireless G only even though my 2005 Toshiba laptop only works in B/G but not N. (The laptop is my only wireless device).
    2) Bandwidth – I used 20 MHz, not Auto 20-40Mhz
    3) Channel – I set it at Auto, I think the router selected Channel 6.  Will it stay there?
    4) Encryption - I used WPA Personal rather than WPA2 Personal because of the age of my equipment – correct decision?
    5) IEEE 802.1x authentication is not enabled on my laptop, the setup tab is grayed out. Is this a problem?
    More generally, how does one change the User Name and password used to access the routers via http?  They are set to the blank User name and admin password.  I don’t see anywhere in the many setup pages where it can be changed.
    MTU (Maximum Transmission Unit) is set at AUTO on the WRT160 and it is disabled on the BEFSX41. Is this okay?
    NAT is enabled on both routers, Dynamic routing is disabled on both.
    UPnP is enabled on the WRT160n but disabled on the primary BEFSX41 router.  Okay?
    DMZ is disabled on both routers, I do not do any gaming.
    Considering that all is working well, should I update my firmware? My WRT160N  firmware is at 3.0.02 build 4, you have 3.0.03 available. The BEFSX41 is at 1.50.18, you have 1.52.16.4.

  • Cascaded routers: no internet access when second router not use NAT

    Cascaded routers: no internet access when second router not use NAT
    Here is my setup:
    [pre]
    WAN
    |
    | 74.96.170.x (WAN IP)         |
    | Router1(Verizon FiOS Router) |
    | Model: MI424WR-GEN2 (Rev F)  |
    | Firmware: 20.21.0.2          |
    | Def router: 74.96.170.1      |
    | 192.168.1.1 (Local IP)       |
    |
    |  192.168.1.22 (WAN IP)   |
    |  Router2(Linksys)        |
    |  Model: WRT54GL v1.1     |
    |  Firmware: v4.30.16      |
    |  Def Router: 192.168.1.1 |
    |  192.168.2.1 (Local IP)  |
    |
    | Computer 192.168.2.160   |
    | Def Router: 192.168.2.1  |
    "q.route" 120L, 4441C written
    [m.wang@m-wang-ltm2:/Users/m.wang/m/Network]
    $ more q.route 
    Cascaded routers: no internet access when second router not use NAT
    Here is my setup:
    [pre]
    WAN 

    | 74.96.170.x (WAN IP)         | 
    | Router1(Verizon FiOS Router) | 
    | Model: MI424WR-GEN2 (Rev F)  | 
    | Firmware: 20.21.0.2          |
    | Def router: 74.96.170.1      |
    | 192.168.1.1 (Local IP)       | 
    |
    |  192.168.1.22 (WAN IP)   | 
    |  Router2(Linksys)        | 
    |  Model: WRT54GL v1.1     |
    |  Firmware: v4.30.16      |
    |  Def Router: 192.168.1.1 |
    |  192.168.2.1 (Local IP)  |
    |
    | Computer 192.168.2.160   | 
    | Def Router: 192.168.2.1  | 
    | NO iptables, basic setup |
    [/pre]
    On computer, I have:
    [pre]
    # route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    default         192.168.2.1     0.0.0.0         UG    2      0        0 enp2s0
    loopback        localhost       255.0.0.0       UG    0      0        0 lo
    192.168.2.0     *               255.255.255.0   U     0      0        0 enp2s0
    [/pre]
    On Router2, I have:
    [pre]
    Routing Table Entry List
    Destination LAN IP | Subnet Mask   | Gateway   | Hop Count | Interface
    192.168.2.0          255.255.255.0   0.0.0.0     1           LAN & Wireless
    192.168.1.0          255.255.255.0   0.0.0.0     1           WAN (Internet)
    0.0.0.0              0.0.0.0         192.168.1.1 1           WAN (Internet)
    [/pre]
    Router2's Operating Mode is Gateway. On Router1, I have: 
    [pre]
    [Router1] Routing Table
    Name                  Destination Gateway      Netmask       Metric   Status
    Network (Home/Office) 192.168.2.0 192.168.1.22 255.255.255.0 0        Applied 
    Network (Home/Office) 192.168.1.0 192.168.1.1  255.255.255.0 0        Applied 
    Routing Protocol: Internet Group Management Protocol (IGMP)
    Default Gateway: 74.96.170.1
    [/pre]
    On computer, I can run tcptraceroute to yahoo.com OK:
    [pre]
    # tcptraceroute yahoo.com
    Selected device enp2s0, address 192.168.2.160, port 46596 for outgoing packets
    Tracing the path to yahoo.com (206.190.36.45) on TCP port 80 (http), 30 hops max
     1  192.168.2.1  0.610 ms  0.729 ms  0.735 ms
     2  192.168.1.1  1.843 ms  1.378 ms  1.363 ms
     3  l100.washdc-vfttp-107.verizon-gni.net (96.241.146.1)  13.620 ms * *
    ... /* It reached the destination. */
    [/pre]
    I want to change Router2's Operating Mode from "Gateway" to "Router" because I
    want to turn off NAT on Router2 so that I can access all computers attached to
    Router2 by their individual IP instead of using port forwarding at Router2.
    The problem is after the mode change from "Gateway" to "Router", and regardless
    whether I disable RIP or enable RIP, and on what interfaces it is enabled, computer
    192.168.2.160 does not have internet connection. 
    Observations:
    [0] INTRAnet works as I can reach computer 192.168.2.160 from computer behind Router1
    192.168.1.x and vice versa.
    [1] ping and traceroute *work* on Router2 itself using the built-in dianostic tool.
    [2] nslookup on computer 192.168.2.160 always works on new lookup. It uses
    192.168.2.1 as the resolver.
    [3] tcptraceroute stops after step 2:
    [pre]
    # tcptraceroute yahoo.com
    Selected device enp2s0, address 192.168.2.160, port 45999 for outgoing packets
    Tracing the path to yahoo.com (98.139.183.24) on TCP port 80 (http), 30 hops max
     1  192.168.2.1  2.553 ms  0.534 ms  0.638 ms
     2  192.168.1.1  1.342 ms  0.964 ms  0.867 ms
     3  * * *
    [/pre]
    [4] tcpdump shows that computer 192.168.2.160 tries to reach out and nothing is returned:
    [pre]
    13:34:03.172828 IP 192.168.2.160.45999 > 98.139.183.24.http: Flags [S], seq 1122548929, win 0, length 0
    13:34:06.175786 IP 192.168.2.160.45999 > 98.139.183.24.http: Flags [S], seq 1122548929, win 0, length 0
    13:34:09.178804 IP 192.168.2.160.45999 > 98.139.183.24.http: Flags [S], seq 1122548929, win 0, length 0
    [/pre]
    This is not expected because NAT to internet should still be done by Router1, no? Computer
    behind Router1 with IP 192.168.1.x has internet connection.
    [5] It looks like I cannot change the Routing Table Entry on Router2. I do not think I need to change anything,
    just an observation.
    [6] If I use LAN to LAN connection, then both intranet and internet works. [The internet IP of Router2 can be
    anything not in the same subnet of the Router1, and DHCP on the local side should be disabled to avoid conflict
    with the the DHCP on Router1].

    I have a question. Unfortunately in order to ask my question, I have to have a lengthy description of my setup. Basically, I have a second Linksys router in "router" operating mode with NAT disabled connected to the Verizon router, and I have a computer which is in a different subnet (192.168.2.x) behind the Linksys router. This computer can communicate with computers behind Verizon router in subnet (192.168.1.x), but cannot reach internet. This is a simplified version of my question, full details are in the original post.
    If I setup the Linksys router in "gateway" operating mode, which means with NAT enabled, then both intranet and internet works, but there is no easy way to setup port forwarding for 10 compueters in 192.168.2.x network to communicate with 10 computers in 192.168.1.x network.
    If I setup the Linksys router in a LAN to LAN configuration with Verizon routers, but this way all computers are in the same subnet, I want them to be in different subnet for access control and things like that.
    I hope this makes things a little clear.
    Thanks.

Maybe you are looking for

  • TS4337 Is there a search field in iCal on iCloud?

    Seems like a very basic function that i have needed repeatedly yet it doesn't seem to be there. Help?

  • Getting a numerical value to change with time

    Hi, I'm trying to control a bunch of relays connected to a NI 6008 and 6501 unit. I've got a program which can take a binary coded decimal code and turn on the appropriate relays for that code but I'd like to automate the system to free me from keepi

  • Updating in JDBC receiver adapter

    Hi Friends,      I came across in the some sdn blogs, Like JDBC to JDBC scenarios i found that in the receiver JDBC adapter there is no place to write update statement or insert statement.Then how the records get updated in the DB. My actual need is

  • Different download locations for podcasts/videos?

    I primarily use a MBP, so I have to think about limited HD space. Does anyone know of a way to set iTunes to download podcasts to an external drive, without having to change my iTunes library location? It seems like it would be a really good idea for

  • PPPoE (not finding host)

    I'm having internet connection issues. I have recently moved apartments and my internet was installed. Now the internet connection, hardware (modem, cables, etc.), and my computer all operate fine, yet I'm unable to connect to the PPPoE host. I don't