debasisdas 580 Posting Genius Featured Poster

What you have tried ?

How you restore that from command prompt or directly in mysql ?

debasisdas 580 Posting Genius Featured Poster

He who has never experienced hurt, cannot experience true love.

debasisdas 580 Posting Genius Featured Poster

you need to resize and rearrange the controls based on system resolution. You need to use X and Y coordinates of the screen.

debasisdas 580 Posting Genius Featured Poster

so what are you passing , month name ?

debasisdas 580 Posting Genius Featured Poster

Summon of dark.

debasisdas 580 Posting Genius Featured Poster

Jack of all trades , master of none.

debasisdas 580 Posting Genius Featured Poster

-1162

debasisdas 580 Posting Genius Featured Poster

i think simple subtract will do that for you.

debasisdas 580 Posting Genius Featured Poster

From your post i became a bit curious and tried to trace back my old days here.

My first post was in community introduction section here, as i was trying to post a brief intro of self ,as per the couple of stickies in that section,just to complete formalities ,before being bombarded with questions a lot via PM from oracle and VB 6 forums.

And surprisingly i have started only one other thread Thoughts of the day ,which has over whelming response from members with 1300+ posts.

That simply means i have never asked any question and always replied to others queries/doubts.

So i am going to pat myself on the back the entire evening.

Ancient Dragon commented: Good Job :) :) +36
debasisdas 580 Posting Genius Featured Poster

comment Unload Me in your code and i hope the rest wills tart working. use Me.Hide instead of unload Me.

debasisdas 580 Posting Genius Featured Poster

You need to format the date to proper format before pasing the same to database.

debasisdas 580 Posting Genius Featured Poster

what is that CON in your code ?

What type of object is that ?

debasisdas 580 Posting Genius Featured Poster

For that you need to use a staging table and update the master table based upon data in the look up table.

You need to handle the code in a PL/SQL block.

debasisdas 580 Posting Genius Featured Poster

Are you using ADO to connect to the database ?

debasisdas 580 Posting Genius Featured Poster

OS will always print to the Default printer.

debasisdas 580 Posting Genius Featured Poster

that ok, but updating records in a loop is not recommended as it takes a lot of system resources. and you have to commit very frequently , which again has a lot of side effects.

debasisdas 580 Posting Genius Featured Poster

try the following

select * from table_name where status ='Avaibale' and status not in ('Completed','Progress')

debasisdas 580 Posting Genius Featured Poster

a single update statement will do , why you need a loop for that.

debasisdas 580 Posting Genius Featured Poster

then you need to populate records from the source to a staging (intermediate) table before actually inserting them to your main table.

so with each load you need to truncate your table and load only the required records.

debasisdas 580 Posting Genius Featured Poster

"Love is as unproblematic as a vehicle. The only problems are the drivers, the passengers and the road". Franz Kafka

debasisdas 580 Posting Genius Featured Poster

I don't think that is an ER diagram.

That seems to be a flow chart to me.

You need to understand the basis difference bewtwen the two.

debasisdas 580 Posting Genius Featured Poster

i don't think that is VB 6.0 code.

if vb 6.0 then try this

Dim Sql As String = "insert into Customer_tbl (Custsql )values '" & txtFirstName.Text & "','" & txtLastName.Text & "')"
con.begintrans          'con-----ADODB connection object.
con.execute sql
con.committrans
debasisdas 580 Posting Genius Featured Poster

you may not directly update the view , again that depends on your table structure.

debasisdas 580 Posting Genius Featured Poster

The simplest method will be create a view based on the table with last five days record. That will be always refreshed every time you run any query on the view.

debasisdas 580 Posting Genius Featured Poster

once you COMMIT that will be reflected in the database table.

if you exit without commit all the uncommitted transactions will be rolled back.

debasisdas 580 Posting Genius Featured Poster

then you need to push the power button on your computer.

debasisdas 580 Posting Genius Featured Poster

Add a menu item and a sub-menu to the main menu to the form.
Add a picture box to the form and set its visible property to False.

Add the following code to a general module (.BAS).(API Functions)
=================================================

Public Declare Function CreateCompatibleDC Lib "gdi32" (ByVal hdc As Long) As Long
Public Declare Function CreateCompatibleBitmap Lib "gdi32" (ByVal hdc As Long, ByVal nWidth As Long, ByVal nHeight As Long) As Long
Public Declare Function SelectObject Lib "gdi32" (ByVal hdc As Long, ByVal hObject As Long) As Long
Public Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Public Declare Function ModifyMenu Lib "user32" Alias "ModifyMenuA" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long, ByVal wIDNewItem As Long, ByVal lpString As Any) As Long
Public Declare Function GetMenu Lib "user32" (ByVal hwnd As Long) As Long
Public Declare Function GetSubMenu Lib "user32" (ByVal hMenu As Long, ByVal nPos As Long) As Long

Add this code to the form load event.
==============================

Picture1.Picture = LoadPicture(app.path & "\" & "CUT.BMP")
Dim D As Long, DU as Long
Dim H As Long
D = CreateCompatibleDC(Picture1.hdc)
H = CreateCompatibleBitmap(Picture1.hdc, 16, 16)

Dim P As Long
P = SelectObject(D, H)
DU = BitBlt(D, 0, 0, 16, 16, Picture1.hdc, 0, 0, &HCC0020)
DU …
debasisdas 580 Posting Genius Featured Poster

Love is like a knife, it can stab the heart or it can carve wonderful images into the soul that will last a lifetime.

debasisdas 580 Posting Genius Featured Poster

A child can ask a question that a wise man can't answer.

debasisdas 580 Posting Genius Featured Poster

follow the link for your question

link

debasisdas 580 Posting Genius Featured Poster

you need to call AddNew or Edit before using Update method.

debasisdas 580 Posting Genius Featured Poster

-1153

debasisdas 580 Posting Genius Featured Poster

"The love we give away is the only love we keep". Elbert Hubbard

debasisdas 580 Posting Genius Featured Poster

you need to convert the date and time to proper format before passing the same to database for processing through SQL statement.

debasisdas 580 Posting Genius Featured Poster

try the sample code

select * from branch
minus
select * from branch where rownum < (select count(*) from branch)
pavan_teja commented: .. +0
debasisdas 580 Posting Genius Featured Poster

you need to pass the condition in the where clause of the query as per your requirement.

debasisdas 580 Posting Genius Featured Poster

delete deletes the records, which can be made permanent by using COMMIT, and can't be rolled back.

Truncate deletes the rows and resets the high watermark and there by de-allocating all the space allocated to the table.

debasisdas 580 Posting Genius Featured Poster

addnew or edit method of the recordset must be called before the update method.

try as the following code

rs.addnew
rs.Fields("Supplier_id") = Val(Text1.Text)
rs.Fields("Supplier_name") = Text2.Text
rs.Fields("contact_person") = Text3.Text
rs.Fields("contact_no") = Text4.Text
rs.Fields("office_address") = Text6.Text
rs.Fields("emails") = Text7.Text
rs.Fields("website") = Text8.Text
rs.Fields("Fax_no") = Text5.Text
rs.Fields("item_type") = Combo1.Text
rs.Update
debasisdas 580 Posting Genius Featured Poster

you need to use the function REPLACE.

debasisdas 580 Posting Genius Featured Poster

there is no such thing like most recent record in database.

there is no way findout the most recent record.

you need to pass some value to fetch the record.

debasisdas 580 Posting Genius Featured Poster

The query that you are using to frame the query needs to be framed dynamically by input from combo and passed to report.

debasisdas 580 Posting Genius Featured Poster

what exactly you mean by over internet ?

are you in the same network as the server ?

debasisdas 580 Posting Genius Featured Poster

in that case he can certainly use all the available APIs

debasisdas 580 Posting Genius Featured Poster

you need to frame the sql query dunamically and pass the area and get the pincode from database.

debasisdas 580 Posting Genius Featured Poster

"If I love you, what business is it of yours?"

debasisdas 580 Posting Genius Featured Poster

i know that .

what is the sql query you are using

debasisdas 580 Posting Genius Featured Poster

you need to set the password for sys and system users at the time of installation and the scott user account will be initially locked you need tpo log in to system or sys account to unlock the scott user.

debasisdas 580 Posting Genius Featured Poster

that depends on the business logic for which the code is defined.

debasisdas 580 Posting Genius Featured Poster

What i understand from your post is each transaction that is executed on table1 needs to be reflected in table2.

what you need to do is execute the same sql from frontend on table2 as table1.

if using using oracle taht can be simply done by puttin all the DML statement into a block of code in a procedure.

debasisdas 580 Posting Genius Featured Poster

you do not need any code to get the value of barcode in a textbox. Once the barcode reader reads the code the value will be populated on any control having focus. what you need to do is process the value as desired , that might involve some calcuations as per your business logic.