debasisdas 580 Posting Genius Featured Poster

Is that your own code ?

debasisdas 580 Posting Genius Featured Poster

You have to frame the SQL at run time and execute the same using as dynamic SQL in a stored procedure.

Read more here and here.

voidyman commented: nice thanks:) +1
debasisdas 580 Posting Genius Featured Poster

do you how to fetch first 5 records from a table using SQL in MySQL ?

debasisdas 580 Posting Genius Featured Poster

you need to call label_click event in the Key press event.

debasisdas 580 Posting Genius Featured Poster

try to debug the code.

use like in place of = in the where clause

move the following lines to form_load event
Set rs = New ADODB.Recordset
rs.CursorLocation = adUseClient

close the recordset after populating the drid

debasisdas 580 Posting Genius Featured Poster
Set DataGrid1.DataSource = rs
debasisdas 580 Posting Genius Featured Poster

The 3rd and 4th column of your output clearly shows, this output is not of the query that you have posted here. Please recheck.

debasisdas 580 Posting Genius Featured Poster

1. You need to frame the query dynamically at run time by taking parameter from the input.
2. Open the record set using the sql.
3. Populate the grid from the recordset.
4. If record count is 0 display the alternate message.

debasisdas 580 Posting Genius Featured Poster

It will be easy to do the same at database level.

debasisdas 580 Posting Genius Featured Poster

In which line you are executing the SQL statement ?

debasisdas 580 Posting Genius Featured Poster

1. Select the distinct value from the column Car Manufacturers and display in the first List Box.
2. Select the value from the first List Box.
3. Pass this value to another SQL dynamically at run time.
4. Fetch the values from the SQL and populate the second List Box.

debasisdas 580 Posting Genius Featured Poster

I think access is not backward compatible and so can't open .ACCDB file which is supported in the version 2007 onwards.

debasisdas 580 Posting Genius Featured Poster

As already suggested no need to install Access if it is used as database only. Having the .MDB file only is enough.

debasisdas 580 Posting Genius Featured Poster

Lets see the code that is throwing the error.

debasisdas 580 Posting Genius Featured Poster

You need to read this and this.

debasisdas 580 Posting Genius Featured Poster

you need to handle the key ascii in Key press event

debasisdas 580 Posting Genius Featured Poster

please post your code here for reference.

debasisdas 580 Posting Genius Featured Poster

you need to select start and end dates from the control
format it as per database format before using the values.
Use BETWEEN operator in database side for date range.

debasisdas 580 Posting Genius Featured Poster

Please specify how are you connecting ? I am not sure what exactly you mean by The database is being detected but not the tables inside the database.

debasisdas 580 Posting Genius Featured Poster

As suggested by smantscheff, you need not bother about STATUS column at all if you do not want to filter by that column and display all the records. So it really does not matter how many distinct values you have in that field.

debasisdas 580 Posting Genius Featured Poster

Welcome aboard.

debasisdas 580 Posting Genius Featured Poster

what is the problem with step2 ?

suppose
on start of the timer
x=1500
y=2000

after 2 seconds
x1=2500
y1=3000


if x <> x1 and y <>y1 then
' your next logic here

debasisdas 580 Posting Genius Featured Poster

No need of using array ,using variables should work for you.

debasisdas 580 Posting Genius Featured Poster

If you do not want time factors, why use timestamp for the field.

If only data and time portion is required why not use DATE data type and sysdate only.

Majestics commented: Truly Amazing.... +7
debasisdas 580 Posting Genius Featured Poster

1. On a timer keep tacking of the X,Y coordinates of the mouse.
2. Check the same after desired time gap and compare with the old location, if it has changed call the click event.
3. On each mouse move reset the timer.

debasisdas 580 Posting Genius Featured Poster

What is the target field type ?
Why you need to convert current_timestamp using to_timestamp ?
Why not use current_timestamp of systimestamp directly.

debasisdas 580 Posting Genius Featured Poster

What is Dwell Clicking ?

debasisdas 580 Posting Genius Featured Poster

Take these following 2 items from you data as example

123--Phone power on but vibrate is too weak P300-3110-VX8575
124--place a test call. P300-1710-DROID

Line 1-----length----60---length of Item Number-----16-----starting position of Item Number--45
Line 2-----length----39---length of Item Number-----15-----starting position of Item Number--25

So, the data is inconsistent.

It will be difficult to design a generic logic for this kind of inconsistent data.

debasisdas 580 Posting Genius Featured Poster

but i don't see any consistency in the data, neither length nor format.

debasisdas 580 Posting Genius Featured Poster

uninstall
reboot system
install

and then check

debasisdas 580 Posting Genius Featured Poster

those are not characters but strings on data.

On what basic / logic you want the output ?

Is the format always same for all the records ?

debasisdas 580 Posting Genius Featured Poster

Oracle is an ORDBMS and sql is a programming language to interact with database.

Please read books for details.

debasisdas 580 Posting Genius Featured Poster

You need to read books for all those details.

debasisdas 580 Posting Genius Featured Poster

Yes.

debasisdas 580 Posting Genius Featured Poster

Lets see what you have so far.

debasisdas 580 Posting Genius Featured Poster

You need to join both the tables based on ItemNumber or Ponumber or both based on your database structure.

debasisdas 580 Posting Genius Featured Poster

you need to format the dates properly before passing the same into the database.

debasisdas 580 Posting Genius Featured Poster

May be you only understand what are you trying to do.

debasisdas 580 Posting Genius Featured Poster

how are you trying to connect.

debasisdas 580 Posting Genius Featured Poster

use cmd.ExecuteNonQuery() outside the IF ..END IF block.

debasisdas 580 Posting Genius Featured Poster

I can't find any code where you are executing the OleDbCommand object.

debasisdas 580 Posting Genius Featured Poster

No

debasisdas 580 Posting Genius Featured Poster

Why not loop through the items in the array by index..

debasisdas 580 Posting Genius Featured Poster

you need to convert the string to date format as defined in your database table column.

debasisdas 580 Posting Genius Featured Poster

I didn't .where?

In post no 5 of this thread.

just use

SELECT table1.col1,table1.col2,table2.col1
FROM table1,table2

without any join.

but output may not be as expected as the result is a cross product in absence of any join..

debasisdas 580 Posting Genius Featured Poster

lets see the query that you are working on.

debasisdas 580 Posting Genius Featured Poster

Your question has nothing to do with VB.net application. The business logic needs to be implemented entirely at database level.

debasisdas 580 Posting Genius Featured Poster

Try to export the access table into a CSV file and import/load the same in SQL Server.

debasisdas 580 Posting Genius Featured Poster

then why are you using JOIN.

Go for a Cartesian product.

debasisdas 580 Posting Genius Featured Poster

you want without join, right ?