resolve table scan and make sargable query.
Hi. I'm starting a clean up on a 2500 rows query and I'm taking it step by step. I have the following part of code that I see a big table scan. I will first try to fix the conversions and see if I can...
View ArticleSQL query not working in ACCESS
I'm helping someone with a query - we developed it in SQL - and they are trying to get it to work in ACCESS. Looks like this Code: Select YrSubStuList.*,C1.*,C2.*,C3.* From (Select Distinct...
View ArticleSort by years of born
Hello VBForums Hello every one Hello Gentelmans Please if you can help me to resolve this problem With my DataBase named " DATA1" and with this Table1 How to make for sorting by years and result...
View Article[RESOLVED] MySql or Sql are they that different
I have this code to populate the text Boxes via a query in MySql. Wouls it need much changing to work in a normal Sql program:- Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As...
View Article[RESOLVED] ListBox to populate TextBoxes from a Query
I was doing ok in this little program I am attempting, on running the ListBox populates great. I am having trouble now populating the listBoxes, here is the code I have tried and hopefully someone may...
View Article[RESOLVED] Problem with DataTable Sql Query
I am attempting to fill in a query on the DataTable Sql compiler I want it to change the value of Username & Password to the values of the textBoxes but it only changes to the TextBox Names. Is...
View Article[RESOLVED] Sort by years of born
Hello VBForums Hello every one Hello Gentelmans Please if you can help me to resolve this problem With my DataBase named " DATA1" and with this Table1 How to make for sorting by years and result...
View ArticleSQL Server CE
Having some major issues trying to get SQLCE to work properly on a CE7 device. Using VB2008 and SQLCE 3.5. Project installs and runs fine under CE5 and Windows Mobile 6 and 6.5. When installed on CE7...
View ArticleUsing VB.NET 2015 to connect to remote SQL Server 2008 R2 database
I am attempting to connect to a remote SQL Server 2008 R2 machine. I am hoping to use SMO to generate a script to create a copy of the database schema and backup some of the table data for specific...
View ArticleHow do I get multiple columns with MAX SQL function?
I went to W3Schools and learned the MAX function. They have a "Try it" feature and SELECT ProductID, MAX(Price) FROM Products works. In SSMS SELECT Max(Time) FROM Accounts works but SELECT ID,...
View Article[RESOLVED] SQL Server CE
Having some major issues trying to get SQLCE to work properly on a CE7 device. Using VB2008 and SQLCE 3.5. Project installs and runs fine under CE5 and Windows Mobile 6 and 6.5. When installed on CE7...
View ArticleGet last order entry for a particular user from the table
Hi guys, Need a help for an access table im using in my vb prgogram the table structure is like INVOICEID | PATIENTID | DATE | AMOUNT | PAID | BALANCE | INV0001 | USER0001 | 9/2/17| 1500 | 1300 | 200 |...
View ArticleSOLVED get more columns than the GROUP by
I have a table tblMaintenanceReport with columns : ID,ReportName,DateReportExpired,NameID,Name, Adresses,zip code,town,MachineID,Type now i want a group SELECT max(DateReportExpired) as...
View ArticleQuery group before and has numbered in access 2003 ?
Suppose a data table can access 2003 such as fields execel file attachments, I want to query the warehouse group by name, bar code, goods, inventory, and then type the serial number, the results of its...
View Article[RESOLVED] remove single value from query
Hey all I have 2 tables A & B Table A id name suffixID 0 him 0 1 her 1 2 it 2 Table B id name isActive 0 Mr. 1 1 Mrs. 1 2 other 0 and this query... SELECT A.name as Name,B.name as Suffix FROM A...
View ArticleVisual Studio 2013 expiry date
I wanna Wrote a program in vb that has date box like 12/12/2017 for example...some date box like this..... how to write a code to alert or textbox(datebox) color change 180 days(3 month) earlier than...
View ArticleNot sure how to resolve SQL Error ?
I'm getting an error in my SQL script and just sure how to resolve it. You can see the attached screenshot but I have also included the complete query below. Code: DECLARE @MainID...
View ArticleMSAccess App/Forms to VB6
I have a project to convert an in-Access application with about a hundred forms to a VB 6 stand alone app. They must avoid .NET for the final app, so it could only be an interim option such as...
View ArticleFor XML PATH to a simpler solution
Hi. Code: SELECT OrderH_intID, OrderTH_strScreenName AS ScreenName, OrderTH_strMovieName AS MovieName, OrderTH_dtmSessionDateTime AS ShowTime, dbo.fnGetBizDateOnly(OrderTH_dtmSessionDateTime) AS...
View ArticleI'm down to 2 compiler warnings
I felt like getting rid of all my compiler warnings today but I've got two left. "A custom tool 'MSDataSetGenerator' is associated with file 'dsContracts.xsd', but the output of the custom tool was not...
View Article