473,837 Members | 1,796 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Display Search by Network (ex. Cisco) or All Projects in the MS Access Table

85 New Member
Hi All,

Below is a GOOD working script that I use to search for the record either by the MOP ID for example 1, 2, etc... (record on the database) or by Network for example when you type Cisco.

What I would like to do and is having problem is to either Search by Network or All MOP IDs on the database (show all records). Let's say if folks type in ALL, it will show all of the MOP IDs (Records) in the database. Thanks advance for your help.
Expand|Select|Wrap|Line Numbers
  1. <%
  2. Dim strNetwork
  3. Dim strMOPID
  4. Dim Conn
  5. Dim strSQL
  6. Dim RS
  7.  
  8. strNetwork = trim(Request.Form("Network"))
  9. strMOPID = trim(Request.Form("MOPID"))
  10. If len(strNetwork)=0 then
  11.     strNetwork=0
  12. End if
  13.  
  14. Set Conn = Server.CreateObject("ADODB.Connection")
  15. Set RS = Server.CreateObject("ADODB.Recordset")
  16.  
  17. Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("MOPsCentral.mdb")
  18.  
  19. If isNumeric(strNetwork) then
  20.     strSQL = "Select * FROM MOPs WHERE MOPID=" & strNetwork
  21. Else
  22.     strSQL = "Select * FROM MOPs WHERE Network='" & strNetwork & "' ORDER BY MOPID"
  23. End If
  24.  
  25. RS.Open strSQL, Conn
  26.  
  27. If RS.EOF Then
  28.    Response.Redirect("SearchMOPs.asp?MOPError=Sorry ... Your MOP ID or Network does not exist in our database.  Please try again.")
  29. End If
  30. %>
Jan 30 '08 #1
10 1612
CroCrew
564 Recognized Expert Contributor
Hello hotflash,

Give this a try:

Expand|Select|Wrap|Line Numbers
  1. <%
  2. Dim strNetwork
  3. Dim strMOPID
  4. Dim Conn
  5. Dim strSQL
  6. Dim RS
  7.  
  8. strNetwork = trim(Request.Form("Network"))
  9. strMOPID = trim(Request.Form("MOPID"))
  10. If len(strNetwork)=0 then
  11. strNetwork=0
  12. End if
  13.  
  14. Set Conn = Server.CreateObject("ADODB.Connection")
  15. Set RS = Server.CreateObject("ADODB.Recordset")
  16.  
  17. Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("MOPsCentral.mdb")
  18.  
  19. If (strNetwork = "All") then
  20.     strSQL = "Select * FROM MOPs ORDER BY MOPID"
  21. Else
  22.     If isNumeric(strNetwork) then
  23.         strSQL = "Select * FROM MOPs WHERE MOPID=" & strNetwork
  24.     Else
  25.         strSQL = "Select * FROM MOPs WHERE Network='" & strNetwork & "' ORDER BY MOPID"
  26.     End If
  27. End IF
  28.  
  29. RS.Open strSQL, Conn
  30.  
  31. If RS.EOF Then
  32. Response.Redirect("SearchMOPs.asp?MOPError=Sorry ... Your MOP ID or Network does not exist in our database. Please try again.")
  33. End If
  34. %>
  35.  
  36.  
Jan 30 '08 #2
hotflash
85 New Member
Hi Crocrew,

It works fine. Thanks for your help.
Jan 31 '08 #3
hotflash
85 New Member
Hi CroCrew,

I have another question to see if you can help me to expand the search function here. Below is the search script that I used to search by ProjectID, ALL OPENED PROJECTS, and by Engineer Name. In the MS Access table, there is a field called RequestorsName as well. How can I modified this nested IF statement to make it also search for RequestorName for exampe CroCrew. I have tried around but does not have any luck.

Thanks for your help.
Expand|Select|Wrap|Line Numbers
  1. <%
  2. Dim strGDNIEngineer
  3. Dim strCompleteDate
  4. Dim Conn
  5. Dim strSQL
  6. Dim RS
  7.  
  8. strGDNIEngineer = trim(Request.Form("GDNIEngineer"))
  9. strCompleteDate = trim(Request.Form("CompleteDate"))
  10. If len(strGDNIEngineer)=0 then
  11.     strGDNIEngineer=0
  12. End if
  13.  
  14. Set Conn = Server.CreateObject("ADODB.Connection")
  15. Set RS = Server.CreateObject("ADODB.Recordset")
  16.  
  17. Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("PTSystem.mdb")
  18.  
  19. If isNumeric(strGDNIEngineer) then
  20.     strSQL = "Select * FROM PTSProjects WHERE ProjectID=" & strGDNIEngineer 
  21. Else
  22.   if strGDNIEngineer="ALL OPENED PROJECTS" then
  23.     strSQL = "Select * FROM PTSProjects WHERE CompleteDate IS NULL"' ORDER BY ProjectID'
  24.   else
  25.       strSQL = "Select * FROM PTSProjects WHERE GDNIEngineer='" & strGDNIEngineer & "' AND CompleteDate IS NULL"' ORDER BY ProjectID'
  26.   end if
  27. End If
  28.  
  29. RS.Open strSQL, Conn
  30.  
  31. If RS.EOF Then
  32.    Response.Redirect("SearchProject.asp?error=Sorry ... Your Project ID does not exist in our database.  Please try again.")
  33. End If
  34. %>
Jan 31 '08 #4
CroCrew
564 Recognized Expert Contributor
Hello hotflash,

It sounds like you need to look into using a CASE statement. Pass in from your <form> the type of search that the user want to do via a radio button or dropdown then use the CASE to determine what SQL syntax to use.

Example:
Expand|Select|Wrap|Line Numbers
  1. select case Request.Form("TypeOfSearch")
  2.     case "UserName"
  3.         strSQL = "SELECT * FROM YourTable WHERE FieldOne = '"Request.Form("UserName") & "'"
  4.     case "ProjectID"
  5.         strSQL = "SELECT * FROM YourTable WHERE FieldTwo = '"Request.Form("ProjectID") & "'"
  6.     case "ProjectName"
  7.         strSQL = "SELECT * FROM YourTable WHERE FieldThree = '"Request.Form("ProjectName") & "'"
  8.     case Else
  9.         Response.Write("Please select a search type!")
  10.         Response.End
  11. end select
  12.  
  13.  

Hope that helps~
Jan 31 '08 #5
hotflash
85 New Member
Hi CroCrew,

Thanks for your replying. You are SO GOOD at this stuff and you are going OVER MY HEAD on this one.

Please see if you can take my hand thru with this one. Below is the input box for user to put in either "Project ID, ALL OPENED RECORDS, or Username".
Expand|Select|Wrap|Line Numbers
  1. <TABLE ALIGN=CENTER BORDER=0 CELLSPACING=2 CELLPADDING=2 BGCOLOR="#FFFFFF">
  2.                 <TR>
  3.                         <TH ALIGN=LEFT> <FONT FACE="HELVETICA,HELV,ARIAL" SIZE=3>Project ID: </FONT></TH>
  4.                         <TD><INPUT CLASS="bluebox" NAME="GDNIEngineer" TYPE="TYPE" SIZE="35" ID="GDNIEngineer"></TD>
  5.                 </TR>
  6.                 &nbsp;&nbsp;&nbsp;&nbsp;
  7.                 <TR>
  8.                     <TD ALIGN="CENTER" COLSPAN=2> <INPUT CLASS="Table_Blue" TYPE="submit" NAME="Submit" VALUE="SEARCH YOUR PROJECT"></TD>
  9.                 </TR>
  10.     </TABLE>
How can you modify this using the RADIO button to make it work with the CASE statement that you provided earlier? The search items that we need are ProjectID, Username, and RequestorName. I also would like an option to search for ALL projects as well. Thanks for your outstanding support.
Feb 1 '08 #6
CroCrew
564 Recognized Expert Contributor
Hello hotflash,

Here is a crude example using two pages. Let me know if you need me to explain more on it.


PageOne.asp
Expand|Select|Wrap|Line Numbers
  1. <html>
  2.     <head>
  3.         <title>PageOne.asp</title>
  4.     </head>
  5.     <body>
  6.         <form method="post" action="PageTwo.asp" name="xForm" id="xForm">
  7.             Search on: 
  8.             <input type="radio" name="SearchType" value="1" checked> Frist Name
  9.             <input type="radio" name="SearchType" value="2"> Last Name
  10.             <input type="radio" name="SearchType" value="3"> State
  11.             <br>
  12.             Using this: <input type="text" name="SearchWith">
  13.             <br>
  14.             <input type="submit" name="Submit">
  15.         </form>
  16.     </body>
  17. </html>
  18.  
  19.  
PageTwo.asp
Expand|Select|Wrap|Line Numbers
  1. <%
  2. select case Request.Form("SearchType")
  3.     case "1"
  4.         strSQL = "SELECT * FROM YourTable WHERE FieldOne = '"Request.Form("SearchWith") & "'"
  5.     case "2"
  6.         strSQL = "SELECT * FROM YourTable WHERE FieldTwo = '"Request.Form("SearchWith") & "'"
  7.     case "3"
  8.         strSQL = "SELECT * FROM YourTable WHERE FieldThree = '"Request.Form("SearchWith") & "'"
  9.     case Else
  10.         Response.Write("Please select a search type!")
  11.         Response.End
  12. end select
  13. %>
  14.  

Hope that helps out~
Feb 1 '08 #7
hotflash
85 New Member
Hi CroCrew,

I have transformed your code into the real environment but it does not show anything. Please help and thanks for your outstanding support.

Below is the SearchProject.a sp (Equivalent to your PageOne.asp):
Expand|Select|Wrap|Line Numbers
  1. <FORM ID="xForm" NAME="xForm" METHOD="post" ACTION="DisplayProject.asp">
  2.  
  3.   <TABLE ALIGN=CENTER BORDER=0 CELLSPACING=2 CELLPADDING=2 BGCOLOR="#FFFFFF">
  4.                 <TR>
  5.                     <TD>
  6.                                 <FONT FACE="HELVETICA,HELV,ARIAL" SIZE=2>Please Select Your Search: </FONT><BR>
  7.                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT FACE="HELVETICA,HELV,ARIAL" SIZE=2><INPUT TYPE="radio" NAME="SearchType" VALUE="1"> Project ID </FONT><BR>
  8.                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT FACE="HELVETICA,HELV,ARIAL" SIZE=2><INPUT TYPE="radio" NAME="SearchType" VALUE="2"> GDNI Engineer </FONT><BR>
  9.                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT FACE="HELVETICA,HELV,ARIAL" SIZE=2><INPUT TYPE="radio" NAME="SearchType" VALUE="3"> Requestor's Name </FONT><BR>
  10.                     <BR>
  11.                   <INPUT TYPE="TEXT" SIZE="39" NAME="SearchWith">
  12.             </TD>
  13.             <BR>
  14.                 </TR>
  15.                 &nbsp;&nbsp;&nbsp;&nbsp;
  16.                 <TR>
  17.                     <TD ALIGN="CENTER" COLSPAN=2> <INPUT CLASS="Table_Blue" TYPE="submit" NAME="Submit" VALUE="SEARCH YOUR PROJECT"></TD>
  18.                 </TR>
  19.     </TABLE>
  20. </FORM>
Here is the code for DisplayProject. asp (Equivalent to your PageTwo.asp):

Expand|Select|Wrap|Line Numbers
  1. <%
  2. Dim strGDNIEngineer
  3. Dim strCompleteDate
  4. Dim Conn
  5. Dim strSQL
  6. Dim RS
  7.  
  8. strProjectID = trim(Request.Form("ProjectID"))
  9. strGDNIEngineer = trim(Request.Form("GDNIEngineer"))
  10. strRequestorName = trim(Request.Form("RequestorName"))
  11. strCompleteDate = trim(Request.Form("CompleteDate"))
  12.  
  13. Set Conn = Server.CreateObject("ADODB.Connection")
  14. Set RS = Server.CreateObject("ADODB.Recordset")
  15.  
  16. Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("PTSystem.mdb")
  17. select case Request.Form("SearchType")
  18.     case "1"
  19.         strSQL = "SELECT * FROM PTSProjects WHERE ProjectID= '"Request.Form("SearchWith") & "'"
  20.     case "2"
  21.         strSQL = "SELECT * FROM PTSProjects WHERE GDNIEngineer = '"Request.Form("SearchWith") & "'"
  22.     case "3"
  23.         strSQL = "SELECT * FROM PTSProjects WHERE RequestorName = '"Request.Form("SearchWith") & "'"
  24.     case Else
  25.         Response.Write("Please select a search type!")
  26.         Response.End
  27. end select
  28.  
  29. RS.Open strSQL, Conn
  30.  
  31. If RS.EOF Then
  32.    Response.Redirect("SearchProject.asp?error=Sorry ... Your Project ID does not exist in our database.  Please try again.")
  33. End If
  34. %>
..... SOME HTML CODE .... Below is the portion of the code that goes in the middle of the HTML code of the DisplayProject. asp file. If you can give me your email, I can send the two files to you.
Expand|Select|Wrap|Line Numbers
  1. <%
  2.  
  3. WHILE NOT RS.EOF 
  4.  
  5.  
  6. Response.Write("<TR>")
  7. Response.Write("<TD><FONT FACE=""HELVETICA,HELV,ARIAL"" COLOR=""#000000"" SIZE=""2"">" & RS("ProjectID") & "&nbsp;</FONT></TD>")
  8. Response.Write("<TD><FONT FACE=""HELVETICA,HELV,ARIAL"" COLOR=""#000000"" SIZE=""2"">" & RS("RequestorName") & "&nbsp;</FONT></TD>")
  9. Response.Write("<TD><FONT FACE=""HELVETICA,HELV,ARIAL"" COLOR=""#000000"" SIZE=""2"">" & RS("GDNIEngineer") & "&nbsp;</FONT></TD>")
  10. Response.Write("<TD><FONT FACE=""HELVETICA,HELV,ARIAL"" COLOR=""#000000"" SIZE=""4""><A HREF=ViewProject.asp?ProjectID=" & RS("ProjectID") & ">View</A></FONT></TD>")
  11. If Request.Cookies("AccessLevel")= "Other" Then
  12.     Response.Write("<TD><FONT FACE=""HELVETICA,HELV,ARIAL"" COLOR=""#000000"" SIZE=""4"">&nbsp;</FONT></TD>")
  13.     Response.Write("<TD><FONT FACE=""HELVETICA,HELV,ARIAL"" COLOR=""#000000"" SIZE=""4"">&nbsp;</FONT></TD>")
  14. Elseif Request.Cookies("AccessLevel")= "Engineer" Then
  15.     Response.Write("<TD><FONT FACE=""HELVETICA,HELV,ARIAL"" COLOR=""#000000"" SIZE=""4""><A HREF=EditProject.asp?ProjectID=" & RS("ProjectID") & ">Edit</A></FONT></TD>")
  16.     Response.Write("<TD><FONT FACE=""HELVETICA,HELV,ARIAL"" COLOR=""#000000"" SIZE=""4"">&nbsp;</FONT></TD>")
  17. Elseif Request.Cookies("AccessLevel")= "Admin" Then
  18.     Response.Write("<TD><FONT FACE=""HELVETICA,HELV,ARIAL"" COLOR=""#000000"" SIZE=""4""><A HREF=EditProject.asp?ProjectID=" & RS("ProjectID") & ">Edit</A></FONT></TD>")
  19.   Response.Write("<TD><FONT FACE=""HELVETICA,HELV,ARIAL"" COLOR=""#000000"" SIZE=""4""><A onclick='return ConfirmDelete()'HREF=DeleteProject.asp?ProjectID=" & RS("ProjectID") & ">Delete</A></FONT></TD>")
  20. End If
  21.  
  22. Response.Write("</TR>")
  23.  
  24. RS.MoveNext
  25. Wend
  26.  
  27.  
  28. RS.Close
  29. Conn.Close
  30. set Conn = nothing
  31. set RS = Nothing
  32. %>
Feb 1 '08 #8
hotflash
85 New Member
Hi Master CroCrew,

Can you help me here? Thanks once again for your help.
Feb 3 '08 #9
CroCrew
564 Recognized Expert Contributor
Hi CroCrew,

I have transformed your code into the real environment but it does not show anything. Please help and thanks for your outstanding support.

Below is the SearchProject.a sp (Equivalent to your PageOne.asp):<F ORM ID="xForm" NAME="xForm" METHOD="post" ACTION="Display Project.asp">

<TABLE ALIGN=CENTER BORDER=0 CELLSPACING=2 CELLPADDING=2 BGCOLOR="#FFFFF F">
<TR>
<TD>
<FONT FACE="HELVETICA ,HELV,ARIAL" SIZE=2>Please Select Your Search: </FONT><BR>
&nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;<FONT FACE="HELVETICA ,HELV,ARIAL" SIZE=2><INPUT TYPE="radio" NAME="SearchTyp e" VALUE="1"> Project ID </FONT><BR>
&nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;<FONT FACE="HELVETICA ,HELV,ARIAL" SIZE=2><INPUT TYPE="radio" NAME="SearchTyp e" VALUE="2"> GDNI Engineer </FONT><BR>
&nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;<FONT FACE="HELVETICA ,HELV,ARIAL" SIZE=2><INPUT TYPE="radio" NAME="SearchTyp e" VALUE="3"> Requestor's Name </FONT><BR>
<BR>
<INPUT TYPE="TEXT" SIZE="39" NAME="SearchWit h">
</TD>
<BR>
</TR>
&nbsp;&nbsp;&nb sp;&nbsp;
<TR>
<TD ALIGN="CENTER" COLSPAN=2> <INPUT CLASS="Table_Bl ue" TYPE="submit" NAME="Submit" VALUE="SEARCH YOUR PROJECT"></TD>
</TR>
</TABLE>
</FORM>

Here is the code for DisplayProject. asp (Equivalent to your PageTwo.asp):


<%
Dim strGDNIEngineer
Dim strCompleteDate
Dim Conn
Dim strSQL
Dim RS

strProjectID = trim(Request.Fo rm("ProjectID") )
strGDNIEngineer = trim(Request.Fo rm("GDNIEnginee r"))
strRequestorNam e = trim(Request.Fo rm("RequestorNa me"))
strCompleteDate = trim(Request.Fo rm("CompleteDat e"))

Set Conn = Server.CreateOb ject("ADODB.Con nection")
Set RS = Server.CreateOb ject("ADODB.Rec ordset")

Conn.Open "Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=" & Server.MapPath( "PTSystem.m db")
select case Request.Form("S earchType")
case "1"
strSQL = "SELECT * FROM PTSProjects WHERE ProjectID= '"Request.Form( "SearchWith ") & "'"
case "2"
strSQL = "SELECT * FROM PTSProjects WHERE GDNIEngineer = '"Request.Form( "SearchWith ") & "'"
case "3"
strSQL = "SELECT * FROM PTSProjects WHERE RequestorName = '"Request.Form( "SearchWith ") & "'"
case Else
Response.Write( "Please select a search type!")
Response.End
end select

RS.Open strSQL, Conn

If RS.EOF Then
Response.Redire ct("SearchProje ct.asp?error=So rry ... Your Project ID does not exist in our database. Please try again.")
End If
%>

..... SOME HTML CODE .... Below is the portion of the code that goes in the middle of the HTML code of the DisplayProject. asp file. If you can give me your email, I can send the two files to you.

<%

WHILE NOT RS.EOF


Response.Write( "<TR>")
Response.Write( "<TD><FONT FACE=""HELVETIC A,HELV,ARIAL"" COLOR=""#000000 "" SIZE=""2"">" & RS("ProjectID" ) & "&nbsp;</FONT></TD>")
Response.Write( "<TD><FONT FACE=""HELVETIC A,HELV,ARIAL"" COLOR=""#000000 "" SIZE=""2"">" & RS("RequestorNa me") & "&nbsp;</FONT></TD>")
Response.Write( "<TD><FONT FACE=""HELVETIC A,HELV,ARIAL"" COLOR=""#000000 "" SIZE=""2"">" & RS("GDNIEnginee r") & "&nbsp;</FONT></TD>")
Response.Write( "<TD><FONT FACE=""HELVETIC A,HELV,ARIAL"" COLOR=""#000000 "" SIZE=""4""><A HREF=ViewProjec t.asp?ProjectID =" & RS("ProjectID" ) & ">View</A></FONT></TD>")
If Request.Cookies ("AccessLevel") = "Other" Then
Response.Write( "<TD><FONT FACE=""HELVETIC A,HELV,ARIAL"" COLOR=""#000000 "" SIZE=""4"">&nbs p;</FONT></TD>")
Response.Write( "<TD><FONT FACE=""HELVETIC A,HELV,ARIAL"" COLOR=""#000000 "" SIZE=""4"">&nbs p;</FONT></TD>")
Elseif Request.Cookies ("AccessLevel") = "Engineer" Then
Response.Write( "<TD><FONT FACE=""HELVETIC A,HELV,ARIAL"" COLOR=""#000000 "" SIZE=""4""><A HREF=EditProjec t.asp?ProjectID =" & RS("ProjectID" ) & ">Edit</A></FONT></TD>")
Response.Write( "<TD><FONT FACE=""HELVETIC A,HELV,ARIAL"" COLOR=""#000000 "" SIZE=""4"">&nbs p;</FONT></TD>")
Elseif Request.Cookies ("AccessLevel") = "Admin" Then
Response.Write( "<TD><FONT FACE=""HELVETIC A,HELV,ARIAL"" COLOR=""#000000 "" SIZE=""4""><A HREF=EditProjec t.asp?ProjectID =" & RS("ProjectID" ) & ">Edit</A></FONT></TD>")
Response.Write( "<TD><FONT FACE=""HELVETIC A,HELV,ARIAL"" COLOR=""#000000 "" SIZE=""4""><A onclick='return ConfirmDelete() 'HREF=DeletePro ject.asp?Projec tID=" & RS("ProjectID" ) & ">Delete</A></FONT></TD>")
End If

Response.Write( "</TR>")

RS.MoveNext
Wend


RS.Close
Conn.Close
set Conn = nothing
set RS = Nothing
%>
Check your PMs (Private Message).
Feb 3 '08 #10

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

Similar topics

8
20363
by: Vladimir | last post by:
Hello, I have a table in MS Access database. It has one field (with BYTE datatype) that has several properties set in Lookup tab of table Design View. Display Control = Combo Box. Row Source Type = Value List. Row Source = "1; "Above"; 2; "Below"; 3; "Equal"". When I try to SELECT <field> FROM <table> in my C++ application through ADO, I get numeric value of the field. How can I get string representation of this numeric value from the...
10
3328
by: nick_faye | last post by:
Hi guys, i'm still a newbie in using MS Access and in VB programming. I am using DAO connection from my VB to access the entries on my MS Access table. I am having trouble in editting and deleting entries from my table because it becomes slower and slower when my table is getting bigger and bigger. What I am doing right now is get the ID of the entry to be editted/deleted and I have to loop from first entry until I found the right ID...
2
2616
by: info | last post by:
I can successfully open a recordset based upon an Excel sheet in Access, but I can't work out how to copy all the records to an Access table. Any pointers?
12
7602
by: VMI | last post by:
For some reason, the process of retrieving data (about 20 records) from an Access table that has 400K records to a dataTable is taking over 3 mins. to complete. Below is my code to connect to the DB and query the table. The table "audit" primary key is "Line". Another weird thing (but I guess that's another post) is that, while it's doing the dataset Fill, my PC is slowed done substantially. But I don't know why that would happen since...
0
941
by: pnp | last post by:
Hi all, I would like to create a component that simulates the functionality of an MS Access table, through a Datagrid combined with comboboxes, datetime selectors and checkboxes. So when a table is dispayed through this datagrid all the foreign keys will be displayed in a combobox which will display the foreign key string and with value the ID of that foreign key to be used in the current table. Also all the dataetime fields to be able to...
1
2102
by: raju5725 | last post by:
I have a MS access table and I want to export it to comma delimited text file. How do I do this programmatically using VB.NET or C#? Thanks for any help in advance. Raju
1
2363
by: SteveBark | last post by:
Hello all I am currently trying to develop a script that will take a value from an Excel spreadsheet cell and use that to run a query against an Access table to delete all rows that match the cell. I have tried to do this by first using a recordset and then secondly using a db.Execute (sqlstring). The idea of using the recordset was that I thought it would return all of the records matched, however it just deletes the 1 row not all of...
1
2361
by: Reef81 | last post by:
Does anyone know a way to have the search parameters displayed in the query or report? For example, if I set up a parameter to search all entries in my table, is there a way to have the search terms I entered displayed next to those entries? I would like to search with multiple parameters (multiple search words) and have the results show me which entries were found with which corresponding search words. Any help would be greatly...
4
1818
by: MissFatma | last post by:
hi i have question i've wrote program using visual stido 2005 C# i have to search a datatable on Access i can connect to it but i have to search using the e-mail address i don't know how? all what i can search using the Row number which is much easier than have long number.. any one can help me by the code?
12
8150
by: anand padia | last post by:
I have a master access table where we store all the employee information. I have various application developed in excel which imports and uses information in master. Now I want to develop a excel application that will import all the records from access table or some particular data (defined by field id) in excel spreadsheet. (***successfully acomplished) User would be able to view the records and make changes to the spreadsheet now when...
0
9691
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
10582
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...
1
10638
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10280
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
7009
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5677
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
5859
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4054
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3128
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.