473,408 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Using AND between multiple search criteria

70 64KB
I have a problem with a search form I'm building. My search criteria works without a problem with text searches. But I added a couple numbers searches (cboSearchOrganization and cboSearchShopName). It seems my use/placement of AND is not correct. It is telling me invalid syntax.
Expand|Select|Wrap|Line Numbers
  1. Private Sub cmdSearch_Click()
  2. Dim sqlSearch As String
  3.      If Not IsNull(Me.cboSearchLastName) Then
  4.           sqlSearch = "SELECT tblCustomer.LastName, tblCustomer.FirstName, tblCustomer.OrganizationFK," _
  5. & " tblCustomer.ShopNameFK, tblCustomer.OfficeSymFK, tblFacilityMgr.CustomerFK, tblFacilityMgr.BuildingFK, tblRooms.RoomsPK" _
  6. & " FROM (tblBuilding INNER JOIN tblRooms ON tblBuilding.BuildingPK = tblRooms.BuildingFK) INNER JOIN" _
  7. & " (tblCustomer INNER JOIN tblFacilityMgr ON tblCustomer.CustomerPK = tblFacilityMgr.CustomerFK) ON" _
  8. & " tblBuilding.BuildingPK = tblFacilityMgr.BuildingFK" _
  9. & " WHERE LastName ='" & Me.cboSearchLastName & "'" _
  10. & " UNION SELECT tblCustomer.LastName, tblCustomer.FirstName, tblCustomer.OrganizationFK," _
  11. & " tblCustomer.ShopNameFK, tblCustomer.OfficeSymFK, tblRoomsPOC.CustomerFK, tblRooms.BuildingFK, tblRoomsPOC.RoomsFK" _
  12. & " FROM tblRooms INNER JOIN (tblCustomer INNER JOIN tblRoomsPOC ON tblCustomer.CustomerPK = tblRoomsPOC.CustomerFK)" _
  13. & " ON tblRooms.RoomsPK = tblRoomsPOC.RoomsFK" _
  14. & " WHERE LastName ='" & Me.cboSearchLastName & "'AND"
  15.    End If
  16.    If Not IsNull(Me.cboSearchFirstName) Then
  17.           sqlSearch = "SELECT tblCustomer.LastName, tblCustomer.FirstName, tblCustomer.OrganizationFK," _
  18. & " tblCustomer.ShopNameFK, tblCustomer.OfficeSymFK, tblFacilityMgr.CustomerFK, tblFacilityMgr.BuildingFK, tblRooms.RoomsPK" _
  19. & " FROM (tblBuilding INNER JOIN tblRooms ON tblBuilding.BuildingPK = tblRooms.BuildingFK) INNER JOIN" _
  20. & " (tblCustomer INNER JOIN tblFacilityMgr ON tblCustomer.CustomerPK = tblFacilityMgr.CustomerFK) ON" _
  21. & " tblBuilding.BuildingPK = tblFacilityMgr.BuildingFK" _
  22. & " WHERE FirstName ='" & Me.cboSearchFirstName & "'" _
  23. & " UNION SELECT tblCustomer.LastName, tblCustomer.FirstName, tblCustomer.OrganizationFK," _
  24. & " tblCustomer.ShopNameFK, tblCustomer.OfficeSymFK, tblRoomsPOC.CustomerFK, tblRooms.BuildingFK, tblRoomsPOC.RoomsFK" _
  25. & " FROM tblRooms INNER JOIN (tblCustomer INNER JOIN tblRoomsPOC ON tblCustomer.CustomerPK = tblRoomsPOC.CustomerFK)" _
  26. & " ON tblRooms.RoomsPK = tblRoomsPOC.RoomsFK" _
  27. & " WHERE FirstName ='" & Me.cboSearchFirstName & "'AND"
  28.    End If
  29.    If Not IsNull(Me.cboSearchOrganization) Then
  30.           sqlSearch = "SELECT tblCustomer.LastName, tblCustomer.FirstName, tblCustomer.OrganizationFK," _
  31. & " tblCustomer.ShopNameFK, tblCustomer.OfficeSymFK, tblFacilityMgr.CustomerFK, tblFacilityMgr.BuildingFK, tblRooms.RoomsPK" _
  32. & " FROM (tblBuilding INNER JOIN tblRooms ON tblBuilding.BuildingPK = tblRooms.BuildingFK) INNER JOIN" _
  33. & " (tblCustomer INNER JOIN tblFacilityMgr ON tblCustomer.CustomerPK = tblFacilityMgr.CustomerFK) ON" _
  34. & " tblBuilding.BuildingPK = tblFacilityMgr.BuildingFK" _
  35. & " WHERE OrganizationFK =" & Me.cboSearchOrganization & "" _
  36. & " UNION SELECT tblCustomer.LastName, tblCustomer.FirstName, tblCustomer.OrganizationFK," _
  37. & " tblCustomer.ShopNameFK, tblCustomer.OfficeSymFK, tblRoomsPOC.CustomerFK, tblRooms.BuildingFK, tblRoomsPOC.RoomsFK" _
  38. & " FROM tblRooms INNER JOIN (tblCustomer INNER JOIN tblRoomsPOC ON tblCustomer.CustomerPK = tblRoomsPOC.CustomerFK)" _
  39. & " ON tblRooms.RoomsPK = tblRoomsPOC.RoomsFK" _
  40. & " WHERE OrganizationFK =" & Me.cboSearchOrganization & " AND "
  41.    End If
  42.    If Not IsNull(Me.cboSearchShopName) Then
  43.    sqlSearch = "SELECT tblCustomer.LastName, tblCustomer.FirstName, tblCustomer.OrganizationFK," _
  44. & " tblCustomer.ShopNameFK, tblCustomer.OfficeSymFK, tblFacilityMgr.CustomerFK, tblFacilityMgr.BuildingFK, tblRooms.RoomsPK" _
  45. & " FROM (tblBuilding INNER JOIN tblRooms ON tblBuilding.BuildingPK = tblRooms.BuildingFK) INNER JOIN" _
  46. & " (tblCustomer INNER JOIN tblFacilityMgr ON tblCustomer.CustomerPK = tblFacilityMgr.CustomerFK) ON" _
  47. & " tblBuilding.BuildingPK = tblFacilityMgr.BuildingFK" _
  48. & " WHERE ShopNameFK =" & Me.cboSearchShopName & "" _
  49. & " UNION SELECT tblCustomer.LastName, tblCustomer.FirstName, tblCustomer.OrganizationFK," _
  50. & " tblCustomer.ShopNameFK, tblCustomer.OfficeSymFK, tblRoomsPOC.CustomerFK, tblRooms.BuildingFK, tblRoomsPOC.RoomsFK" _
  51. & " FROM tblRooms INNER JOIN (tblCustomer INNER JOIN tblRoomsPOC ON tblCustomer.CustomerPK = tblRoomsPOC.CustomerFK)" _
  52. & " ON tblRooms.RoomsPK = tblRoomsPOC.RoomsFK" _
  53. & " WHERE ShopNameFK =" & Me.cboSearchShopName & ""
  54. End If
  55.         Call MsgBox(sqlSearch, vbOKOnly, "Debug")
  56. Me.RecordSource = sqlSearch
  57. End Sub
If I delete the shopname string and just leave Organization, it works without a problem. It seems to me like my problem is with AND. What am I doing wrong?
Oct 5 '15 #1
17 1287
Stewart Ross
2,545 Expert Mod 2GB
You've said that the text searches work, but I'm not so sure that this is so. You are using separate IF statements to test your combos. Assume for the moment that just the first combo, cboSearchLastName, has a value, so the IF at line 3 is satisfied and none of the other IF statements is executed. By the end of the first set of SQL build statements at line 14 you have a dangling AND at the end of the Where clause:

Expand|Select|Wrap|Line Numbers
  1. " WHERE LastName ='" & Me.cboSearchLastName & "'AND"
The same applies to other IF statements at lines 27 and 40. SQL statements cannot end with an unterminated AND, so trying to use such statements as the recordsource of your form (line 56) is not going to work as it stands.

Can you explain more about why there is an AND at the end of the WHERE clause in three of the four tests, and what you expect to be ANDed in these cases?

-Stewart
Oct 5 '15 #2
ittechguy
70 64KB
Thanks for your reply.

I'm trying to build a search form which sets the record source for the form based on the search. There are several search criteria. I have last name, first name, organization, shop name, office symbol, etc. I need to be able to search through one or several. So Last Name, First Name, and Organization. Or just last name.

That's why I have AND at the end of the WHERE clause. I'm trying to get it to search through several if statements. I'm thinking, maybe I need to have sqlSearch = sqlSearch & at the beginning of each statement?
Oct 5 '15 #3
ittechguy
70 64KB
I just realized, I do not think the recordsource can be multiple queries. It seems perhaps I may have to have the recordsource be my main query (which contains everything), then filter it based on whats being searched for. Does that sound right?
Oct 5 '15 #4
NeoPa
32,556 Expert Mod 16PB
You've made life very complicated for yourself. I'm not sure, but we may be going over ground here we've covered before. Certainly, the .RecordSource property is a more complicated, and unnecessarily so, approach when all you require is to filter your form. There is a .Filter property for doing just that. See Cascaded Form Filtering for everything you should need for filtering your forms.

NB. Multiple filtering ComboBoxes doesn't necessarily imply cascading. This is only true if the selected item in one determines the list to select from in any of the others. Often A determines B, determines C, etc. The logic flows like a waterfall from one through and past all the others.

In essence, you should build up a filter string by continuously adding strings that start with " AND ". When completed, you know you have an extraneous " AND " at the beginning of your filter string so you remove it. This is done very simply using :
Expand|Select|Wrap|Line Numbers
  1. Blahblah = Mid(YourString, 6)
Oct 5 '15 #5
NeoPa
32,556 Expert Mod 16PB
I seem to have cross-posted with you.
ITTechGuy:
Does that sound right?
Absolutely right. Yes :-)
Oct 5 '15 #6
Stewart Ross
2,545 Expert Mod 2GB
You are on the right track in thinking about your recordsource as your main query. You can either build the WHERE clause in VBA, or you can build a filter string and apply that to your form as a filter instead. Either way, you need to use correct syntax for your WHERE clause (and a filter string is just a WHERE clause without the WHERE keyword). That means you if you want to use the keyword AND to join sections of your clause together you must work out how to do so in a way that does not leave ANDs dangling. (Edit see the simple method for removing the last AND in a sequential build posted by NeoPa above)

Here's an example from one of my forms which has some optional and some linked filters for departments and tasks:

Expand|Select|Wrap|Line Numbers
  1.     strSQL = "SELECT DISTINCT " & strDateFieldName & " FROM " & Me.frmTaskSummary.Form.RecordSource & " WHERE "
  2.     If strTaskDeptFilter = "" Then
  3.         strSQL = strSQL & "TRUE"
  4.     Else
  5.         strSQL = strSQL & strTaskDeptFilter & " AND " & strPlanFilter
  6.     End If
  7.     If AdditionalWhereClause <> "" Then
  8.         strSQL = strSQL & " AND " & AdditionalWhereClause
  9.     End If
The first IF tests a filter string (set elsewhere) and appends the value TRUE to the WHERE of the SQL if the filter string is not set.

Edit
Sorry, cross-posted with NeoPa. Follow his advice and you won't go wrong!

-Stewart
Oct 5 '15 #7
ittechguy
70 64KB
Ok. I've rebuilt my code as follows:
Expand|Select|Wrap|Line Numbers
  1. Private Sub cmdSearch_Click()
  2. Me.RecordSource = "SELECT tblCustomer.LastName, tblCustomer.FirstName, tblCustomer.OrganizationFK," _
  3. & " tblCustomer.ShopNameFK, tblCustomer.OfficeSymFK, tblFacilityMgr.CustomerFK, tblFacilityMgr.BuildingFK, tblRooms.RoomsPK" _
  4. & " FROM (tblBuilding INNER JOIN tblRooms ON tblBuilding.BuildingPK = tblRooms.BuildingFK) INNER JOIN" _
  5. & " (tblCustomer INNER JOIN tblFacilityMgr ON tblCustomer.CustomerPK = tblFacilityMgr.CustomerFK) ON" _
  6. & " tblBuilding.BuildingPK = tblFacilityMgr.BuildingFK" _
  7. & " UNION SELECT tblCustomer.LastName, tblCustomer.FirstName, tblCustomer.OrganizationFK," _
  8. & " tblCustomer.ShopNameFK, tblCustomer.OfficeSymFK, tblRoomsPOC.CustomerFK, tblRooms.BuildingFK, tblRoomsPOC.RoomsFK" _
  9. & " FROM tblRooms INNER JOIN (tblCustomer INNER JOIN tblRoomsPOC ON tblCustomer.CustomerPK = tblRoomsPOC.CustomerFK)" _
  10. & " ON tblRooms.RoomsPK = tblRoomsPOC.RoomsFK"
  11. Dim strWhere As String
  12.      If Not IsNull(Me.cboSearchLastName) Then
  13.           strWhere = strWhere & "[LastName] ='" & Me.cboSearchLastName & "'AND"
  14.              End If
  15.              If Not IsNull(Me.cboSearchFirstName) Then
  16.           strWhere = strWhere & "[FirstName] ='" & Me.cboSearchFirstName & "'AND"
  17.              End If
  18.              If Not IsNull(Me.cboSearchOrganization) Then
  19.           strWhere = strWhere & "[OrganizationFK] =" & Me.cboSearchOrganization & "AND"
  20.              End If
  21.              If Not IsNull(Me.cboSearchShopName) Then
  22.           strWhere = strWhere & "[ShopNameFK] =" & Me.cboSearchShopName & "AND"
  23.              End If
  24.              If Not IsNull(Me.cboSearchOfficeSym) Then
  25.           strWhere = strWhere & "[OfficeSymFK] =" & Me.cboSearchOfficeSym & ""
  26.              End If
  27.          Call MsgBox(strWhere, vbOKOnly, "Debug")
  28. Me.Filter = strWhere
  29. Me.FilterOn = True
  30. End Sub
I added the criteria one if statement at a time to ensure it works properly. Everything worked (or so it seems) until I added cboSearchOfficeSym. Which then it fails telling me invalid syntax.

I double checked, choSeachOfficeSym and OfficeSymFK are both correct. I do not understand why cboSearchShopName is working but cboSearchOfficeSym is not.

I even entered the criteria in the query builder and it worked. This makes me think something else is wrong with my code.
Oct 6 '15 #8
ittechguy
70 64KB
I figured it out! I couldn't sleep (this project has been many long hours at work and sleepless nights) so I got up and worked on it again. I figured it wasn't right to manually remove the trailing " AND " because I do not know what order the user would search it from. So its impossible to know which AND to remove. So I wrote (or more accurately, copy /paste) some code to remove the " AND " automatically. Works like a charm!

Expand|Select|Wrap|Line Numbers
  1. Private Sub cmdSearch_Click()
  2. Me.RecordSource = "SELECT tblCustomer.LastName, tblCustomer.FirstName, tblCustomer.OrganizationFK," _
  3. & " tblCustomer.ShopNameFK, tblCustomer.OfficeSymFK, tblFacilityMgr.CustomerFK, tblFacilityMgr.BuildingFK, tblRooms.RoomsPK" _
  4. & " FROM (tblBuilding INNER JOIN tblRooms ON tblBuilding.BuildingPK = tblRooms.BuildingFK) INNER JOIN" _
  5. & " (tblCustomer INNER JOIN tblFacilityMgr ON tblCustomer.CustomerPK = tblFacilityMgr.CustomerFK) ON" _
  6. & " tblBuilding.BuildingPK = tblFacilityMgr.BuildingFK" _
  7. & " UNION SELECT tblCustomer.LastName, tblCustomer.FirstName, tblCustomer.OrganizationFK," _
  8. & " tblCustomer.ShopNameFK, tblCustomer.OfficeSymFK, tblRoomsPOC.CustomerFK, tblRooms.BuildingFK, tblRoomsPOC.RoomsFK" _
  9. & " FROM tblRooms INNER JOIN (tblCustomer INNER JOIN tblRoomsPOC ON tblCustomer.CustomerPK = tblRoomsPOC.CustomerFK)" _
  10. & " ON tblRooms.RoomsPK = tblRoomsPOC.RoomsFK"
  11. Dim strWhere As String
  12. Dim lngLen As Long
  13.      If Not IsNull(Me.cboSearchLastName) Then
  14.           strWhere = strWhere & "[LastName] ='" & Me.cboSearchLastName & "' AND "
  15.              End If
  16.              If Not IsNull(Me.cboSearchFirstName) Then
  17.           strWhere = strWhere & "[FirstName] ='" & Me.cboSearchFirstName & "' AND "
  18.              End If
  19.              If Not IsNull(Me.cboSearchOrganization) Then
  20.           strWhere = strWhere & "[OrganizationFK] =" & Me.cboSearchOrganization & " AND "
  21.              End If
  22.              If Not IsNull(Me.cboSearchShopName) Then
  23.           strWhere = strWhere & "[ShopNameFK] =" & Me.cboSearchShopName & " AND "
  24.              End If
  25.              If Not IsNull(Me.cboSearchOfficeSym) Then
  26.           strWhere = strWhere & "[OfficeSymFK] =" & Me.cboSearchOfficeSym & " AND "
  27.              End If
  28.              If Not IsNull(Me.cboSearchBuildingName) Then
  29.           strWhere = strWhere & "[BuildingFK] =" & Me.cboSearchBuildingName & " AND "
  30.              End If
  31.         Call MsgBox(strWhere, vbOKOnly, "Debug")
  32.     lngLen = Len(strWhere) - 5
  33.     If lngLen <= 0 Then
  34.         MsgBox "No criteria", vbInformation, "Nothing to do."
  35.     Else
  36.         strWhere = Left$(strWhere, lngLen)
  37.         Call MsgBox(strWhere, vbOKOnly, "Debug")
  38. Me.Filter = strWhere
  39. Me.FilterOn = True
  40. End If
  41. End Sub
One question though. If I search for something which brings no results (like say building "A", LastName "Jones" and Jones isn't a facility manager or room POC for building A), as it is now the form disappears as if by magic and I do not see anything until I search for something else.


How can I make it so that instead, it:

--Displays a message box which says something like "Sorry, there were no results for that search"
--Returns to a blank form after user hits "OK"

I feel like I should know this, it sounds simple enough. But perhaps my brain isn't functioning well at 1:00 in the morning.

I know I need to use something like this: MsgBox "No Records Found." But, I'm not sure how to let vba know that no results were found.
Oct 6 '15 #9
ittechguy
70 64KB
Forgot to attach image of form being filtered when there are no results for a search.
Attached Images
File Type: jpg magic.jpg (8.9 KB, 98 views)
Oct 6 '15 #10
ittechguy
70 64KB
Did some research. it looks like I need to use DCount, like this;

Expand|Select|Wrap|Line Numbers
  1. If DCount("*", "yourQueryNameHere") = 0 Then
That won't work though because I don't have a query name per se. I have the SQL string at the beginning and then my where clauses.
Oct 6 '15 #11
jforbes
1,107 Expert 1GB
If your Form has the AllowAdditions properties set to False and then it is Filtered with a Filter that would return zero records in your result set, the Form goes into a weird state and pretty much all the controls will disappear. I wish it didn't but it does. It's as if the Form expects a current record, but there isn't one and it breaks the chain of events during the rendering of the Form.

What I've done to remedy this is to set AllowAdditions to True and then add the following code in a BeforeInsert Event to stop users from entering information on the NewRecord.
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_BeforeInsert(Cancel As Integer)
  2.     msgBoxInfo ("Please use the New Quote Button from the Main Menu instead of entering a new record directly into this Form.")
  3.     Cancel = True
  4. End Sub
It's not the prettiest of solutions, but it works without too much fuss. Another option, that you seem to be pursuing, is to get a record count before applying a Filter. This a pretty good solution. The reasons I haven't used it:
  • It would take longer to perform which might not be a big deal, but there would be two queries to make it work vs one.
  • It wont catch the situation where the Form is opened with a Filter. Which is something that I seem to do often.
Oct 6 '15 #12
ittechguy
70 64KB
Thanks jforbes!

It is weird that the form does this. I think in my situation, it may be best to use DCount. I do not care so much about the slightly longer time to load, this is not going to be a huge database anyways.

How would I use DCount in this situation? I can't use "myQueryNameHere" because I don't have a query name. I have a search string, called strWhere.
Oct 6 '15 #13
jforbes
1,107 Expert 1GB
There are a few different ways to approach this, but the easiest would be to create a saved Query Definition based on what you have for your RecordSource in post #9 and use it as the basis of the DCount. You could also then base you Form on the Query. If you did this you would end up with something like this:
Expand|Select|Wrap|Line Numbers
  1. If DCount("LastName", "NameOfYourNewQuery", strWhere) > 0 Then
  2.     ...Do Your Stuff...
  3. End If
Here is Microsoft's info on Dcount:https://support.office.com/en-in/art...a-11a64acbf3d3
Oct 6 '15 #14
NeoPa
32,556 Expert Mod 16PB
ITTechGuy:
How would I use DCount in this situation? I can't use "myQueryNameHere" because I don't have a query name. I have a search string, called strWhere.
Indeed. One of the limitations of the Domain Aggregate functions (All those beginning D...) is that they won't take a SQL string, but only an Access Object (such as TableDefs and QueryDefs). This is why JForbes suggests saving the logic currently held in your string variable into a QueryDef object.

Obviously, all the changeable items would be applied in the Criteria parameter with the QueryDef containing just the logic that's constant and common to all.
Oct 9 '15 #15
ittechguy
70 64KB
NeoPa,

I ended up using an actual query instead of having an SQL statement in my code. It works a lot better now. The only issue I'm having now is duplicate data in the RecordSource.
Oct 9 '15 #16
NeoPa
32,556 Expert Mod 16PB
Do you have details of that for us, or do you plan to ask that as a separate thread?
Oct 9 '15 #17
ittechguy
70 64KB
I have another thread, here http://bytes.com/topic/access/answer...es-union-query

Its long, sorry. I hope it explains in enough detail the problem I'm having. Its been extremely frustrating. I've spent hours after hours searching everywhere online, I can't seem to find a solution to my problem.
Oct 9 '15 #18

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Vishy | last post by:
Hi One of the less documented features of xpath is how to run multiple search on nodes or attributes e.g <Book name="Harry Potter" price="10GBP"/> <Book name="Harry Potter" price="5USD"/> now...
1
by: TH | last post by:
I am (still :) working on a recipe database. Now I am trying to figure out how to set it up for an ingredient search. What I want it to be able to do is three things: 1. Search based on just...
1
by: Casey | last post by:
Hi, How would one allow for possible multiple search criteria using FREETEXTTABLE. For example, my table "listings" has a full-text search catalog, and I may want to: SELECT * FROM listings...
2
by: rinmanb70 | last post by:
I have a QBF form/query and a report from the QBF that shows the results of the QBF. I would like to show the criteria on the report that was used in the QBF to get the info on report. I can't...
1
by: James890 | last post by:
I want to enable a user to enter a start and end date to define the period they want to search for records of members who joined on certain dates. Funny thing is...I've got it to work half of the...
3
by: AishaKhalfan | last post by:
Hi, :wave: I have many search criteria in my program, such as: search by name, search by age, search by gender, search by city the user can search by name only, or by name and age, or by...
11
by: Panlflzs | last post by:
Howdy, I am working on a system where I need a basic HTML form to pass data to a cfm page. The cfm page will then query a database and return any matching data. I am using MySQL. I have my HTML...
8
by: salzan | last post by:
I have this code: strAny = " = " & rsTemp!YearId rsPerm.Find strAny and it works. However, when I do the following it doesn't strAny = " = " & rsTemp!YearId & " AND " & _ "...
2
by: Ru55ell | last post by:
Hi I have written a form that has 4 drop down selection boxes on it, with check boxes next to them. When a user selects something from the drop down box the check box is automatically selected. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.