For those that want to know the VB.Net portion (or for when I forget and have to come back here)...
Dim DS As DataSet
Dim oCmd As New OleDb.OleDbCommand("SuppliersTest", oConn1)
oCmd.CommandType = CommandType.StoredProcedure
Dim myParm As OleDb.OleDbParameter =...
Never mind. I figured it out. Had to get away from it for a few minutes to see past all those trees! [sunshine]
PARAMETERS Supplier Text ( 255 );
SELECT tSuppliers.SupplierID, tSuppliers.SupplierName
FROM tSuppliers
WHERE (((tSuppliers.SupplierName)=[Supplier]));
Thanks.
Thanks for the info. I'm not quite getting the Access query part. I've added the parameter but when I run the query it still gives me all of the suppliers (see code below). What am I missing?
PARAMETERS Supplier Text ( 255 );
SELECT tSuppliers.SupplierID, tSuppliers.SupplierName
FROM...
I have a query in Access that I would like to pass parameters to from VB.Net.
I don't know how to...
1. Designate the variable in Access
2. Designate the variable in VB.Net
3. Pass the variable to the Access query via VB.Net/ADO.Net
Does anyone have links to something that would help me...
I'm developing a small web app that takes the users name from a web form and prints it out to a label printer.
My problem is that I don't know how to go about printing. I do not want to print the web form just the data that the user has entered. The printer is a special label printer but it...
Problem Solved!
Thank you all for your input and nudging toward the answer. What I eventually did was as follows:
Dim myDate as Date = Calendar1.SelectedDate
Dim strSQL As String = "SELECT * FROM Table1 WHERE (DateEntered Between #" & myDate & " 0:1:0# And #" & myDate &...
I'm trying to do a SQL query against an Access 2002 DB with a Date/Time field. The format of the field is "mm.dd.yyyy hh:mm:ss AM"
I'm using a calendar control to get a date to search the database. My SQL statement looks like this:
Dim strSQL As String = "SELECT * FROM Table1...
I'm trying to display data in a hand made (a la old asp) table so that my table headers and data are displayed vertically rather than horizontally.
Is it possible to bind data from a database to a text label in a cell? Is there another way of doing what I want with the DataGrid that I'm just...
I'm reading information from a database and trying to format the boolean true/false as a yes/no.
Below is the code that I came up with but this is as far as I have gotten.
<asp:DataGrid id="DataGrid2" runat="server" AutoGenerateColumns="False">...
Thank you JuanitaC! That works great!
Now I have a problem displaying a double quote in an input text box.
If I have something like:
5/8" dia. tube
When it is called from the DB it looks like:
5/8
Seems like everything from the double quotes on is removed. It is still in the DB...
I have a form that the user enters info into and sometimes that info might contain a quote or double quote. I'm trying to find out how to enter these quotes into an Access db so that the information viewed in the database looks normal.
I have been able to change the quotes to a character code...
Gearhead,
Thanks! It works great. I just have a question about the line:
response.write "<tr><td><a href='#' onclick='openwin(" & CStr(oRS.Fields("ID").Value) & ")'>" & oRS("LNAME") & "</a></td></tr>"
If I want to change the database...
I'm having trouble passing a variable from ASP/VBScript to a JavaScript function.
I'm trying to pass the var_URL to the openwin() function. But keep getting a "Line: 22 Error: 'var_URL' is undefined" in the ASP portion of the code (points to <body> line).
Below is my code: Any...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.