473,786 Members | 2,615 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Popup form for filtering form

Hi All,

I am hoping someone out there will be kind enough to find out where my
code is going wrong. The current code is inefficiant but hopefully it
will convey the data I require to be filtered.

Basically I have a popup form which has 6 optional controls to filter
records in another form. The code below does not work. Can anyone
suggest some correctons or alternatives.

Thanks,

Nathan

Private Sub Search_Click()
Dim varFilter1 As String
Dim varFilter2 As String
Dim varFilter3 As String
Dim varFilter4 As String
Dim varFilter5 As String
Dim varFilter6 As String

varFilter1 = "[LoadsheetNo] = #" & Forms!frmSearch ![Filter1] & "#"
varFilter2 = "[CarrierConnote] = #" & Forms!frmSearch ![Filter2] & "#"
varFilter3 = "[Date] = #" & Forms!frmSearch ![Filter3] & "#"
varFilter4 = "[CarrierName] = Forms!frmSearch ![Filter4]"
varFilter5 = "[SendingStoreNo] = #" & Forms!frmSearch ![Filter5] & "#"
varFilter6 = "[ReceivingStoreN o] = #" & Forms!frmSearch ![Filter6] &
"#"

Dim strSQL As String, intCounter As Integer
'Build SQL String

If Application.Cur rentProject.All Forms("frmLoads heetsSearch").I sLoaded
Then
DoCmd.Close acForm, "frmLoadsheetsS earch"
DoCmd.OpenForm "frmLoadsheetsS earch", acViewNormal
For intCounter = 1 To 6
If Me("Filter" & intCounter) <> "" Then
strSQL = strSQL & Chr(34) & "Filter" & intCounter & Chr(34) &
" And "
End If
Next

If strSQL <> "" Then
'Strip Last " And "
strSQL = Left(strSQL, (Len(strSQL) - 5))
'Set the Filter property
Forms![frmLoadsheetsSe arch].Filter = "[LoadsheetNo] = #" &
Forms!frmSearch ![Filter1] & "#"
Forms![frmLoadsheetsSe arch].FilterOn = True
GoTo Endcode
End If
Else

DoCmd.OpenForm "frmLoadsheetsS earch", acViewNormal

For intCounter = 1 To 6
If Me("Filter" & intCounter) <> "" Then
strSQL = strSQL & Chr(34) & "Filter" & intCounter & Chr(34) & " And "

End If
Next

If strSQL <> "" Then
'Strip Last " And "
strSQL = Left(strSQL, (Len(strSQL) - 5))
'Set the Filter property
Forms![frmLoadsheetsSe arch].Filter = strSQL
Forms![frmLoadsheetsSe arch].FilterOn = True
End If
End If
Endcode:
End Sub
Nov 12 '05 #1
7 2653
Hi Nathan

To filter Date/Time fields, you need the # as the delimiter.
To filter Text fields, use " as the delimiter.
To filter Number fields, use no delimiter.

Test if each of the controls is Null before including them in the filter
string.

(Note that if you do have a field called "Date", Access may misunderstand
it, since Date in VBA refers to the system date.)

Private Sub Search_Click()
Dim strFilter As String
Dim lngLen As Long
Dim strFormName As String

If Not IsNull(Me.Filte r1) Then 'Number-field example
strFilter = strFilter & "([LoadsheetNo] = " & Me.Filter1 & ") AND "
End If
If Not IsNull(Me.Filte r2) Then 'Text-field example
strFilter = strFilter & "[CarrierConnote] = """ & Me.Filter2 & """)
AND "
End If
If Not IsNull(Me.Filte r3) Then 'Date/Time example
strFilter = strFilter & "[Date] = #" & Format(Me.Filte r3,
"mm/dd/yyyy") & "#) AND "
End If
'etc.

lngLen = Len(strFilter) - 5
If lngLen <= 0 Then
MsgBox "No criteria"
Else
strFilter = Left$(strFilter , lngLen)
strFormName = "frmLoadsheetsS earch"
DoCmd.OpenForm strFormName, acViewNormal
With Forms(strFormNa me)
.Filter = strFilter
.FilterOn = True
End With
End If
End Sub

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Nathan Bloomfield" <na************ **@hotmail.com> wrote in message
news:4b******** *************** ***@posting.goo gle.com...

I am hoping someone out there will be kind enough to find out where my
code is going wrong. The current code is inefficiant but hopefully it
will convey the data I require to be filtered.

Basically I have a popup form which has 6 optional controls to filter
records in another form. The code below does not work. Can anyone
suggest some correctons or alternatives.

Thanks,

Nathan

Private Sub Search_Click()
Dim varFilter1 As String
Dim varFilter2 As String
Dim varFilter3 As String
Dim varFilter4 As String
Dim varFilter5 As String
Dim varFilter6 As String

varFilter1 = "[LoadsheetNo] = #" & Forms!frmSearch ![Filter1] & "#"
varFilter2 = "[CarrierConnote] = #" & Forms!frmSearch ![Filter2] & "#"
varFilter3 = "[Date] = #" & Forms!frmSearch ![Filter3] & "#"
varFilter4 = "[CarrierName] = Forms!frmSearch ![Filter4]"
varFilter5 = "[SendingStoreNo] = #" & Forms!frmSearch ![Filter5] & "#"
varFilter6 = "[ReceivingStoreN o] = #" & Forms!frmSearch ![Filter6] &
"#"

Dim strSQL As String, intCounter As Integer
'Build SQL String

If Application.Cur rentProject.All Forms("frmLoads heetsSearch").I sLoaded
Then
DoCmd.Close acForm, "frmLoadsheetsS earch"
DoCmd.OpenForm "frmLoadsheetsS earch", acViewNormal
For intCounter = 1 To 6
If Me("Filter" & intCounter) <> "" Then
strSQL = strSQL & Chr(34) & "Filter" & intCounter & Chr(34) &
" And "
End If
Next

If strSQL <> "" Then
'Strip Last " And "
strSQL = Left(strSQL, (Len(strSQL) - 5))
'Set the Filter property
Forms![frmLoadsheetsSe arch].Filter = "[LoadsheetNo] = #" &
Forms!frmSearch ![Filter1] & "#"
Forms![frmLoadsheetsSe arch].FilterOn = True
GoTo Endcode
End If
Else

DoCmd.OpenForm "frmLoadsheetsS earch", acViewNormal

For intCounter = 1 To 6
If Me("Filter" & intCounter) <> "" Then
strSQL = strSQL & Chr(34) & "Filter" & intCounter & Chr(34) & " And "

End If
Next

If strSQL <> "" Then
'Strip Last " And "
strSQL = Left(strSQL, (Len(strSQL) - 5))
'Set the Filter property
Forms![frmLoadsheetsSe arch].Filter = strSQL
Forms![frmLoadsheetsSe arch].FilterOn = True
End If
End If
Endcode:
End Sub

Nov 12 '05 #2
See comments/questions throughout...

"Nathan Bloomfield" <na************ **@hotmail.com> wrote in message
news:4b******** *************** ***@posting.goo gle.com...
Hi All, Private Sub Search_Click()
Dim varFilter1 As String
Dim varFilter2 As String
Dim varFilter3 As String
Dim varFilter4 As String
Dim varFilter5 As String
Dim varFilter6 As String

varFilter1 = "[LoadsheetNo] = #" & Forms!frmSearch ![Filter1] & "#"
varFilter2 = "[CarrierConnote] = #" & Forms!frmSearch ![Filter2] & "#"
varFilter3 = "[Date] = #" & Forms!frmSearch ![Filter3] & "#"
varFilter4 = "[CarrierName] = Forms!frmSearch ![Filter4]"
varFilter5 = "[SendingStoreNo] = #" & Forms!frmSearch ![Filter5] & "#"
varFilter6 = "[ReceivingStoreN o] = #" & Forms!frmSearch ![Filter6] &
"#"

You seem to be treating all but one of the above as dates, although only one
field name indicates it would be a date.
Only surround dates with #. Strings need to be enclosed with ' or ". Numbers
are not enclosed.
Dim strSQL As String, intCounter As Integer
'Build SQL String

If Application.Cur rentProject.All Forms("frmLoads heetsSearch").I sLoaded
Then
DoCmd.Close acForm, "frmLoadsheetsS earch"
DoCmd.OpenForm "frmLoadsheetsS earch", acViewNormal
Why close the form, then re-open it?


For intCounter = 1 To 6
If Me("Filter" & intCounter) <> "" Then
strSQL = strSQL & Chr(34) & "Filter" & intCounter & Chr(34) &
" And "
End If
Next

If you are refering to a control name when using Me("Filter" & intCounter)
then you should use
Me.Controls("Fi lter" & intCounter). Also you should (I feel it's good
practise even if it's not required)
to include the counter or object variable in the Next statement ie. Next
intCounter
If strSQL <> "" Then
'Strip Last " And "
strSQL = Left(strSQL, (Len(strSQL) - 5))
'Set the Filter property
Forms![frmLoadsheetsSe arch].Filter = "[LoadsheetNo] = #" &
Forms!frmSearch ![Filter1] & "#"
Forms![frmLoadsheetsSe arch].FilterOn = True
GoTo Endcode
End If
Else

Why start over? At the begining you tested to see if the form was open, then
you closed it then
reopened it. Instead of enclosing all of the above within the first If
statement, only deal with
wether or not the form is open. Once open, all the rest need only be writen
once.

DoCmd.OpenForm "frmLoadsheetsS earch", acViewNormal

For intCounter = 1 To 6
If Me("Filter" & intCounter) <> "" Then
strSQL = strSQL & Chr(34) & "Filter" & intCounter & Chr(34) & " And "

End If
Next

If strSQL <> "" Then
'Strip Last " And "
strSQL = Left(strSQL, (Len(strSQL) - 5))
'Set the Filter property
Forms![frmLoadsheetsSe arch].Filter = strSQL
Forms![frmLoadsheetsSe arch].FilterOn = True
End If
End If
Endcode:
End Sub


What are all the varFilters for? You haven't used them anywhere.

Mike Storr
www.veraccess.com

Nov 12 '05 #3
Hi Allen,

Thanks very much for the help. The code below looks promising but I
have come across a minor(hopefully ) hiccup.

The number fields work but the text fields come up with "type mismatch"
error". I have checked all the fields on the table and they are
definately text.

The date field comes up with a "you cant assign a value to this object"
error.

Thanks again for your assistance,

Nathan

Private Sub Search_Click()
Dim strFilter As String
Dim lngLen As Long
Dim strFormName As String

If Not IsNull(Me.Filte r1) Then 'Number-field example
strFilter = strFilter & "([LoadsheetNo] = " & Me.Filter1 & ")
AND "
End If
If Not IsNull(Me.Filte r2) Then 'Number-field example
strFilter = strFilter & "([CarrierConnote] = " & Me.Filter2 & ")
AND "
End If
If Not IsNull(Me.Filte r3) Then 'Date/Time example
strFilter = strFilter & "[LoadsheetDate] = #" &
Format(Me.Filte r3, "dd/mm/yyyy") & "#) AND "
End If
If Not IsNull(Me.Filte r4) Then 'Text-field example
strFilter = strFilter & "[CarrierName] = """ & Me.Filter4 &
""")" And ""
End If
If Not IsNull(Me.Filte r5) Then 'Number-field example
strFilter = strFilter & "([SendingStoreNo] = " & Me.Filter5 & ")
AND "
End If
If Not IsNull(Me.Filte r6) Then 'Number-field example
strFilter = strFilter & "([ReceivingStoreN o] = " & Me.Filter6 &
") AND "
End If

lngLen = Len(strFilter) - 5
If lngLen <= 0 Then
MsgBox "No criteria"
Else
strFilter = Left$(strFilter , lngLen)
strFormName = "frmLoadsheetsS earch"
DoCmd.OpenForm strFormName, acViewNormal
With Forms(strFormNa me)
.Filter = strFilter
.FilterOn = True
End With
End If

End Sub

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #4
Just to add:

The LoadsheetNo & CarrierConnote are both text fields in the
tblLoadsheets which is the source of qryLoadsheets which is the record
source of frmLoadsheetsSe arch
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #5
Hi Nathan,

In your test field assignments, you either need to use four
double-apostrophes at each end, or use a single apostrophe within two
doubles - e.g.
strFilter = strFilter & "[CarrierName] = " & """" & Me.Filter4 & """" & "
And "
or
strFilter = strFilter & "[CarrierName] = '" & Me.Filter4 & "' And "

In either case once Jet has a squizz at """" or "'" it'll know you mean a
string delimiter.
"""" translates into ", and "'" into ' either of which works fine with Jet.

BTW look out for redundant or extra brackets creeping in.

Try setting a breakpoint after the final clean-up of the string, then check
the variable using the Immediate Window (CTRL+G, then type "?strFilter " -
without the apostrophes - and press ENTER. You'll soon see it it's OK. You
can always open up a new query in design mode, change to SQL view, the copy
and paste the Immediate Window output into it, add "SELECT * FROM
<yourformrecord source> WHERE " in front of the filter string and see what
happens when you change to regular design or preview view. It'll bitch at
you if you've forgotten a space or left a bracket in by mistake.

Enough apostrophes already! You'll soon get the hang of it - some of the
rest of us have, and we're not all scary gurus!

By the way, you could also stick your filter string into the DoCmd command
as the fourth argument:
DoCmd.OpenForm "frmWhateve r", , , strFilter
or
DoCmd.OpenForm FormName:= "frmWhateve r", WhereCondition: =strFilter
if you prefer, so your filter string works just like an extra WHERE clause
on the forms RecordSource. Easy, huh?

Good luck

Andrew
"Nathan Bloomfield" <na************ ***@hortmail.co rm> wrote in message
news:40******** *************@n ews.frii.net...
Hi Allen,

Thanks very much for the help. The code below looks promising but I
have come across a minor(hopefully ) hiccup.

The number fields work but the text fields come up with "type mismatch"
error". I have checked all the fields on the table and they are
definately text.

The date field comes up with a "you cant assign a value to this object"
error.

Thanks again for your assistance,

Nathan

Private Sub Search_Click()
Dim strFilter As String
Dim lngLen As Long
Dim strFormName As String

If Not IsNull(Me.Filte r1) Then 'Number-field example
strFilter = strFilter & "([LoadsheetNo] = " & Me.Filter1 & ")
AND "
End If
If Not IsNull(Me.Filte r2) Then 'Number-field example
strFilter = strFilter & "([CarrierConnote] = " & Me.Filter2 & ")
AND "
End If
If Not IsNull(Me.Filte r3) Then 'Date/Time example
strFilter = strFilter & "[LoadsheetDate] = #" &
Format(Me.Filte r3, "dd/mm/yyyy") & "#) AND "
End If
If Not IsNull(Me.Filte r4) Then 'Text-field example
strFilter = strFilter & "[CarrierName] = """ & Me.Filter4 &
""")" And ""
End If
If Not IsNull(Me.Filte r5) Then 'Number-field example
strFilter = strFilter & "([SendingStoreNo] = " & Me.Filter5 & ")
AND "
End If
If Not IsNull(Me.Filte r6) Then 'Number-field example
strFilter = strFilter & "([ReceivingStoreN o] = " & Me.Filter6 &
") AND "
End If

lngLen = Len(strFilter) - 5
If lngLen <= 0 Then
MsgBox "No criteria"
Else
strFilter = Left$(strFilter , lngLen)
strFormName = "frmLoadsheetsS earch"
DoCmd.OpenForm strFormName, acViewNormal
With Forms(strFormNa me)
.Filter = strFilter
.FilterOn = True
End With
End If

End Sub

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 12 '05 #6
Nathan, nothing is being assigned to any object until the string is assigned
to the Filter property of the form. Is that where the problem occurs? If so,
add:
Debug.Print strFilter
so you can see what's wrong in the Immediate Window (Ctrl+G).

If things are going wrong before that, you must have a naming conflict, or
invalid syntax.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Nathan Bloomfield" <na************ ***@hortmail.co rm> wrote in message
news:40******** *************@n ews.frii.net...

Thanks very much for the help. The code below looks promising but I
have come across a minor(hopefully ) hiccup.

The number fields work but the text fields come up with "type mismatch"
error". I have checked all the fields on the table and they are
definately text.

The date field comes up with a "you cant assign a value to this object"
error.

Thanks again for your assistance,

Nathan

Private Sub Search_Click()
Dim strFilter As String
Dim lngLen As Long
Dim strFormName As String

If Not IsNull(Me.Filte r1) Then 'Number-field example
strFilter = strFilter & "([LoadsheetNo] = " & Me.Filter1 & ")
AND "
End If
If Not IsNull(Me.Filte r2) Then 'Number-field example
strFilter = strFilter & "([CarrierConnote] = " & Me.Filter2 & ")
AND "
End If
If Not IsNull(Me.Filte r3) Then 'Date/Time example
strFilter = strFilter & "[LoadsheetDate] = #" &
Format(Me.Filte r3, "dd/mm/yyyy") & "#) AND "
End If
If Not IsNull(Me.Filte r4) Then 'Text-field example
strFilter = strFilter & "[CarrierName] = """ & Me.Filter4 &
""")" And ""
End If
If Not IsNull(Me.Filte r5) Then 'Number-field example
strFilter = strFilter & "([SendingStoreNo] = " & Me.Filter5 & ")
AND "
End If
If Not IsNull(Me.Filte r6) Then 'Number-field example
strFilter = strFilter & "([ReceivingStoreN o] = " & Me.Filter6 &
") AND "
End If

lngLen = Len(strFilter) - 5
If lngLen <= 0 Then
MsgBox "No criteria"
Else
strFilter = Left$(strFilter , lngLen)
strFormName = "frmLoadsheetsS earch"
DoCmd.OpenForm strFormName, acViewNormal
With Forms(strFormNa me)
.Filter = strFilter
.FilterOn = True
End With
End If

End Sub

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 12 '05 #7
Hello Allen, Andrew & Mike:

Thanks for your help. By piecing together your suggestions I have
come away with more than originally intended. I have in the past
neglected to utilise the Immediate Window which is an invaluable tool.
And I now understand the use of apostrophes for the varying field
types. As an amateur programmer I would be lost without this kind of
assistance.

Regards,

Nathan
Melbourne, Australia
The final code:

Private Sub Search_Click()
'Thanks to Allen Browne for the code below
Dim strFilter As String
Dim lngLen As Long
Dim strFormName As String

If Not IsNull(Me.Filte r1) Then 'Text-field example
strFilter = strFilter & "[LoadsheetNo] =" & """" & Me.Filter1
& """" & " And "
End If
If Not IsNull(Me.Filte r2) Then 'Text-field example
strFilter = strFilter & "[CarrierConnote] =" & """" &
Me.Filter2 & """" & " And "
End If
If Not IsNull(Me.Filte r3) Then 'Date/Time example
strFilter = strFilter & "[LoadsheetDate] = #" &
Format(Me.Filte r3, "mm/dd/yyyy") & "# AND "
End If
If Not IsNull(Me.Filte r4) Then 'Text-field example
strFilter = strFilter & "[CarrierName] =" & """" & Me.Filter4
& """" & " And "
End If
If Not IsNull(Me.Filte r5) Then 'Number-field example
strFilter = strFilter & "([SendingStoreNo] = " & Me.Filter5 &
") AND "
End If
If Not IsNull(Me.Filte r6) Then 'Number-field example
strFilter = strFilter & "([ReceivingStoreN o] = " & Me.Filter6
& ") AND "
End If

lngLen = Len(strFilter) - 5
If lngLen <= 0 Then
MsgBox "No criteria"
Else
strFilter = Left$(strFilter , lngLen)
strFormName = "frmLoadsheetsS earch"
DoCmd.OpenForm strFormName, acViewNormal
With Forms(strFormNa me)
Debug.Print strFilter
.Filter = strFilter
.FilterOn = True
End With
End If

End Sub
Nov 12 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
22212
by: Davey | last post by:
I have a website which has a popup window (this only opens when the user chooses to open it). In the popup window I have a <select> control which lists a selection of "classes". Each class has a description and a class_id (stored in the value attribute of each option). The user will then select a class from the drop-down list. What I want to do is have a control in the parent browser window which can store the class_id and the...
3
11105
by: Jason | last post by:
I am trying to filter records in a primary form based on records in related tables. The data in the related tables is being displayed in the primary form through subforms. To be more specific, I have a primary form named TestResults, which is connected to data in a table named TestResults. There are basically two other tables that are related to the TestResults table (and the primary form) named Names-Normalized and SiteAddresses. The...
0
6476
by: CSDunn | last post by:
Hello, I have a problem with field filtering between an Access 2000 Project form (the application is called CELDT), and the report that shows the results of the filter. Both the form and the report are based on the same View addressed in the Record Source of both as 'dbo.CLMain_vw'. The View resides in a SQL Server 2000 database. There are two different problems I am having with filtering: The first involves filtering in the form by date...
5
3091
by: Richard | last post by:
Hi, I have a form that take some time to load due to many comboboxes and at least 8 subforms. When I filter or sort the main form I get an error message and then Access shuts down. They ask if I want to send the error report to Microsoft. Has anybody seen this type of error message and what can I do to prevent it from happening. Am I doing something illegal in my code? It used to work but I have added conditional formatting to a subform...
18
2988
by: Colin McGuire | last post by:
Hi - this was posted last weekend and unfortunately not resolved. The solutions that were posted almost worked but after another 5 days of working on the code everynight, I am not further ahead. If you do have any ideas I would really like to hear them. Thanks Colin - 0 - 0 - 0 - I want a glorified popup/context menu on a button that shows only when
4
8850
by: Macbane | last post by:
Hi, I have a 'main' form called frmIssues which has a subform control (named linkIssuesDrug) containing the subform sfrmLink_Issues_Drugs. A control button on the main form opens a pop-up form which allows me to edit the record in the subform. What I want to happen is for subform with the new edits to be updated on the main form when I close the popup. I'm sure this is a very small bit of code in the the 'On close' event for the popup...
3
2784
by: cmo | last post by:
Well I hope I this isn't too nebulous of a problem. The problem I currently have is this: I have a button in a form that opens up a javascript/css poup that has an input field and two ahref links for ok and cancel, both of which call the popup's toggle() method (same thing that is called from the button). The form that this button is in has fields that can be added or removed by the user. Everything works great in firefox and netscape,...
5
2456
by: Thelma Roslyn Lubkin | last post by:
I am still having trouble trying to use a popup form to allow user to set filters for the main form. The main form is based on a single table. The popup contains 5 listboxes, so the user can filter on 5 fields in this table, and can include as many field values as s/he needs. The popup is reached from a command button on the main form : This button is on the main form, Datasystem:
11
5325
by: V S Rawat | last post by:
using Javascript, I am opening a web-based url in a popup window. MyWin1=Window.Open(url, "mywindow") There is a form (form1) in the url in that popup window, I need to submit that form. How do I submit that form1 from the javascript from my current window? Thanks.
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9496
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10164
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9961
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8989
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.