Quantcast
Channel: VBForums - Database Development
Browsing all 2918 articles
Browse latest View live

Data is clearing from text box but not from the database

I have three text boxes. txtFirst is userinput, txtSecond is userinput and txtResult is the result of the first two boxes which happens when you click on the 'Calculate' button. I have another button...

View Article


Why this code is not updating database?

Looks fine to me but it is not updating field c2. Code:           Dim query as String = "UPDATE tt1 SET c2=@c2 WHERE c1=@c1 AND ID=@ID"               Dim comm As New FbCommand(query, conn)...

View Article


Updating picture to Access Database problem

Please can somebody help i am trying to update information and picture to database, adding the information is no problem but when i try to update the information i get a syntax error my code is as...

View Article

SQL problem with SUM when combine many tables

What SQL can create the desired table below? Here are my tables: Employee: e_ID Name Basic Salary 001 Sarah 200 002 Alan 200 Commision: c_ID c_commision c_date 001 20 14/05/2015 002 15 14/05/2015 001...

View Article

question relatedto my db design

Relating to my db structure i will be designing, i would like to as this question. If purchase has normal debit balance and purchase return has normal credit balance, what is the normal balance for...

View Article


Concurrency exception: Row not found or changed.

Hi guys, Doing a little bit of database programming. Am here only because I've spent an inappropriate amount of time trying to figure this out. I have two tables defined as objects with a one to many...

View Article

Move a datatable to another with different structure

I want to copy one table to another because I need to reorganize data fields. First table have this structure: ID CHAR(10) C1 CHAR(4) C2 VARCHAR(10) second table is: ID CHAR(8) C01 CHAR(4) C02 CHAR(4)...

View Article

Text box not accepting decimals

I have been working with different codes but obviously I am not understanding why it is not working. My text boxes will not accept a decimal number. I even tried 'Double'. Code: Private Sub...

View Article


Need help learning to manipulate SQL Server db with VS2013 VB.net

I am quite fluent with VB6/VBA and Access and had written code in a few projects with those. I am migrating to VS2013 VB and SQLExpress. I went thru James Foxall's "Teach Yourself VS 2012" and start to...

View Article


Query with two fields pointing to same table

I have a table that references 2 different records in a table called "Locations". So there is a field called "LocationIDFrom" and another called "LocationIDTo". I want to join the table with the...

View Article

how to query between null dates ?

I have this Stored Procedure like select * from table_test where testid=1 and testdate between mydatefrom and mydateto where the value of mydatefrom and mydateto are null. Can I say ... select * from...

View Article

formatting date

I have this format to follow which is A.TransDate between '2014-05-08 23:41:56' and '2015-05-08 23:41:56' so if I code the dates I have this A.TransDate between (date_format(mydatefrom,'%Y-%m-%d') + '...

View Article

[RESOLVED] Excel Error "Data type mismatch in criteria expression"

I am using OleDb and reading an Excel spreadsheet into my C# program: Code:                 using (OleDbDataAdapter oda = new OleDbDataAdapter("Select * FROM [Closed$]", connection))                  {...

View Article


just a need to confirm about query

i cannot test bcoz im on mobile. but im thinking if it is correct. i have this table of for example 100 transaction for purchase and returns of item-a. now i create a running balance query for for this...

View Article

[RESOLVED] Query with two fields pointing to same table

I have a table that references 2 different records in a table called "Locations". So there is a field called "LocationIDFrom" and another called "LocationIDTo". I want to join the table with the...

View Article


[RESOLVED] formatting date

I have this format to follow which is A.TransDate between '2014-05-08 23:41:56' and '2015-05-08 23:41:56' so if I code the dates I have this A.TransDate between (date_format(mydatefrom,'%Y-%m-%d') + '...

View Article

GROUP by with a split string...

...GROUP BY Split(VER.MER, '-')(1) is a part of my SQL, in vb6 but have error! I need group by with thw split of field VER.MER, with the 2Th part of the split function.. for example: 111-aaa i need to...

View Article


Image may be NSFW.
Clik here to view.

Duplicating a database table

Hello, I need to duplicate a table that's in a Access database through VB 2008. Allow me to give the run down of what i'm trying to achieve here before I ask for help, as I may not be doing this in the...

View Article

Oracle: better way to pull and manipulate this data?

The data in question are series (Levelx in the query below) of data from a tester (torque, pressure, etc), 100 points per series. The issue is I need to interpolate readings at a couple specific points...

View Article

Is a SELECT query that uses WHERE id > 0 not safe ?

Hi,, I had this problem with a php error, the cliche "No INDEX is used" and many posts say to just ignore it using MYSQLI_REPORT_OFF I tried that but that didn't work, a post on devshed explained the...

View Article
Browsing all 2918 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>