 |
|
 |
Please help me in this above code when i Insert data then it pops a message box with " INSERT INTO AUTHOR BLAH..BLAHH.. i just want to have the message Record Inserted like this
|
|
|
|
 |
|
 |
This code was really useful.
Thanks for the code
What the problem with me is I Publish the project with visual basic 2008 express edition, first it did not find the Table.accdb file so I copied and pasted it inside. It worked but when I added record the record is not added in the database cause we have used the path """Data Source=" & System.Environment.CurrentDirectory & "\Table.accdb""" in our project. After I publish is the location is 'C:\Users\inspiron\AppData\Local\Apps\2.0\Data\MNO6YN5X.7ZG\0PBYXVP6.XXE\test..tion_ee6a8876689f96bb_0001.0000_b7413e4e9ab5ef07\Data\Table.accdb
What to do
|
|
|
|
 |
|
 |
Hello
Thank you for this, but I am getting an error:
Syntax error (missing operator) in query expression Au_ID = " & txtAu_ID.Text & ";
Can you please help me?
thank you
|
|
|
|
 |
|
 |
in your example of updating a database you onlu updated one field.
can more than one field be updated at one time?
bill
|
|
|
|
 |
|
 |
i was following this on vb 2008 and pressed update button and when program gets to cmdupdate.executenonquery...
i get error saying "syntax error in UPDATE Statement"
how can i fix this?
please someone help me!!
|
|
|
|
 |
|
|
 |
|
 |
how to print the form in printer when i click the button.
|
|
|
|
 |
|
 |
how to print the form in printer when i click the button.
|
|
|
|
 |
|
 |
Sorry yar, I could not reply you last time, today I saw your second email, I thought before starting work I should reply you.
Use PrintDocument1.Print() to print the form,
Why don't you use Crystal Reports...
Take care Allah Hafiz
Shahzad
|
|
|
|
 |
|
 |
i dont know how to create crystal report
Can u explain me
|
|
|
|
 |
|
 |
Hi
In my form loading text box focus is true in default.
But i want text box focus false when the form loading
ie,
In form loading
textbox13.focus
But i need focus should be false in all text boxes
pl reply
|
|
|
|
 |
|
 |
Hello sir,
How can i convert my project to exe file..
Please reply soon
|
|
|
|
 |
|
 |
Follow the following steps:
Open Visual Studio
Create New Project
Point to Other Project Types
Select Setup and Deployment
Setup Project
You will see two panes
Select Application Folder from Left Side
Right Click on Right Pane and Select Add then Files - Here add your files if you want to add folder then fist Create a folder and open that folder and then add your files
Select User Desktop from Left
Right click on Right Pane and Select Create New Shortcut - Select the .exe from your application folder
Select User's Program Menu from Left
Right click on Right Pane If you want to create a folder then first create folder and then add the file
Then move to menu bar then Build Solution
Let it create the package
Try it, Best of luck
Shahzad
|
|
|
|
 |
|
 |
sorry sir,
I cant understand your details.
Can u tell me in full details.
Thank You sir.
|
|
|
|
 |
|
 |
Just do an experiment and follow the steps.
Shahzad
|
|
|
|
 |
|
 |
how can i use multi comment line
reply me soon
Thank you
|
|
|
|
 |
|
 |
what u mean?
Explain in detail
|
|
|
|
 |
|
 |
Sir, I want to calculate days between the date which i entered. then it should be in the same month..
Ex:
10/5/2008
10/12/2008
10/21/2008
11/5/2008
These are all my input
Here, i need the days between 10/5/2008 and 10/12/2008, 10/12/2008 and 10/21/2008
and the important is 10/21/2008 and 10/31/2008..
|
|
|
|
 |
|
 |
Your statement shows that you are getting input from user. Use the following code
Dim sd As Date = "11/1/2008"
Dim ed As Date = "11/15/2008"
Dim ts As TimeSpan
Dim nd As Integer
ts = ed.Subtract(sd)
nd = ts.Days
MsgBox(nd.ToString & " Days")
if you have dates in database table and want to calculate the difference between two dates use the following query
select count(*) from orders where orderdate between '1996-07-04' and '1996-07-10'
Take care & Allah Hafiz
Shahzad
|
|
|
|
 |
|
 |
sir i calculated days between two days. But i need the calculation for dates in the same month. But my input is next month..
Input:
10/25/2008 and 11/6/2008
Here my need is 10/25/2008 to 10/31/2008
I think u understood..
|
|
|
|
 |
|
 |
I've checked it with your inputs, first output was 12 days from 10-25-2008 to 11-6-2008 excluding last day
and second output was 6 days from 10-25-2008 to 10-31-2008
Try it again
|
|
|
|
 |
|
 |
sir sorry to disturb u again.
My Inputn is these two date only
10/25/2008 and 11/6/2008
I need the output is the days between 10/25/2008 and 10/31/2008 is 6 days.
i wont give the date 10/31/2008
|
|
|
|
 |
|
 |
If I am wrong please do correct me okay,
I think you want to get dates by giving input of StartDate and EndDate e.g.
you enter StartDate 11/25/2008 and EndDate 12/05/2008
after this you expect that system should display Dates from 11/26/2008, 11/27/2008 ..... 12/05/2008,
am I right?
Reply me
Waiting........
|
|
|
|
 |
|
 |
No sir,
Actually i m doing the program for Interest calcutaion in single month.
LoanNo PaidDate Credit Balance
12 10/5/2008 2000 8000
12 10/12/2008 1000 7000
12 10/21/2008 1000 6000
12 11/5/2008 2000 4000
This s my database. now i have to calculate interest in oct month only.
first oct 5th to oct 12=7 days
second oct 12th to oct 21=9 days
third oct 21 to oct 31=10 days
it should wont consider november month...
|
|
|
|
 |
|
 |
Okay, its very simple just subtract 1 from days each time you calculate the days like
nd = ts.Days - 1
its easy to handle because through out in days 1 is unnecessory for you, so u can handle it by subtracting it at time of calculating days.
Okay, Reply me
|
|
|
|
 |