|
i have a simple application in vb.net as follows:
i have a textbox called salary.i have to enter the total salary amount that an employee as taken.after entering the total amount in the textbox when i press enter key a form will be displayed in which it will ask for the monthly break up i.e in which month how much salary taken..similarly i ve some other field..now when i finally press the submit button the total amount along with the monthly break up will be inserted into the database...i am using vb.net & ms access.
its urgent please...
any help in this will be highly appreciated..
i m pradip kishore
|
|
|
|
|
Hi Pradip,
What exactly is the problem? I hope you have some code that isn't working, because you can forget about someone providing you with a ready made application, if that is what you were hoping for.
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
Hi Johan
thanks for your reply.but i just want the concept how to do it not the entire ready made solution.if you can help me in this regard then i ll be greatful to you.
pradip kishore
|
|
|
|
|
Hi Pradip,
Allright then, if I understand you correctly, you are opening two different forms (f.e. FrmSalary and FrmBreakDown), and you need to pass data from each form to the same table.
Basically you can use two approaches:
1. write the data from the Salary form to the table, either direct, or via a dataset, and include some sort of record key, pass the key to the second form, for example by public variable. Then, based on the key, pass the data from the Breakdown form to the table.
2. same as approach 1, but first pass the whole thing to a temporary table, validate all data, or integrate some sort of user-approval step (the whoops step), and then copy the data to the table.
Hope this helps you,
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
Sir/Madam,
I was programically trying to ascertain whether the particular table in the database exist or not.For that i am using the following Query.
SELECT COUNT(*) AS TABLE_EXISTS FROM MSysObjects WHERE Name = 'Forms'
But the problem is , When I am tring to implement it using VB.net 2005.It shows the following error.
Records cannot be read.No read permission on MSysObjects
I am using MS-Access
Please help.
Thanks and Regards
Pankaj
(India)
|
|
|
|
|
hi,
Please can anyone tell me the difference b/w object based & object oriented techonolgy?
Thanks,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Where have you heard the terms ? What is it you're hoping to find out ?
I've never heard of object based technology. Have you tried google ? Do you know what OO is ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
hi,
i know what is object oriented technology. i saw this in important questionnare from xyz site.
"VB.NET is object oriented where VB is object based". how can we explain this statement?
thanks,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
OK - the answer then is that VB is crap. Object based is a way to make excuses for the fact that it's not OO. It knows about objects, but it's not OO, because it wasn't fully designed right. There is no design trade off, no reason to want 'object based', it's just a name for why VB sucks so much
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
how to write code to allow only numerics in vb.net
thax
|
|
|
|
|
|
Handle the keypress event and if char.isnumeric and char.iscontrol are both false for the char passed in on the event, set handled on the eventargs to true
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Ask your question in a new thread instead of as a reply in someone elses thread.
---
Year happy = new Year(2007);
|
|
|
|
|
Hi
I have to print an html file, I want to rotate it by 90 degrees. I know how to take portrait and landscape reports.
I want to know how to rotate it by 90 degrees. Do you know how to do it????
(I should be resize I know that and I can do it)
Thanks!
jayasshc
|
|
|
|
|
Hello,
I’m working on a window application with visual studio 2005. Get the following error message.
Unable to copy file "obj\Debug\MyProject.exe" to "bin\Debug\ MyProject.exe". The process cannot access the file 'bin\Debug\ MyProject.exe' because it is being used by another process.
What I did is:
1. I just copied some staffs from another project. When I build it, the above message is displayed.
2. I restarted my computer and rebuild the project, the error disappears
3. I add more code on my project and build it, the error comes again
If you can give me any good suggestion, I will really appreciate it.
|
|
|
|
|
possibilities:
1) are you running the application outside the ide? check the taskmanager and make sure myproject.exe is not in the list before you do a build.
2) in the ide, run the app and stop it. does the task manager show anything of your app is still running? if so, then investigate why.
3) do you have references to projects/dlls that other applications might be keeping them open?
Nathan
|
|
|
|
|
Nathan,
Thank you so much for your replay. Your reply is really helpful for me.
I think my case is the second one you mentioned. Once I run my project, I found a myproject.exe is running in task manager. After I kill it, my project can be build. Even I close visual studio with my project. MyProject.exe is still running. Do you think what is the possible reason? How to avoid it?
Jane
|
|
|
|
|
1) do you have any loops? maybe you have a condition where you can't get out of one?
2) are you "cleaning up after yourself", release all objects properly.
3) any "shared" or "global" objects not being released when you shutdown your main form?
|
|
|
|
|
How to get the unique Serial number on usb flash drive()vb.net2005
I need your help, please! Thanks all..
gladys
|
|
|
|
|
http://www.codeguru.com/vb/controls/vb_shell/comments.php/c3049/?thread=39850
|
|
|
|
|
I have the need to write typed class that will hold single values as well as a collection of one value such as places lived. So I would have Name, Number, Income, Places Lived(multiple).
I have this done as a collection variable that holds the class with a .Add. When I try to set the value to the populated class in the code it says that the class cannot be converted to type Collections. What is the deal???
Cleako
|
|
|
|
|
cleako wrote: What is the deal???
If you were to post a skeleton of your class structure (the classes + public interfaces would be sufficient) it would make more sense.
cleako wrote: When I try to set the value to the populated class in the code it says that the class cannot be converted to type Collections. What is the deal???
I suspect that you are attempting to store an instance of the class PlaceLived into a Collection object, rather than create the collection and add the PlaceLived object to the collection.
|
|
|
|
|
Something like the following.
<br />
Public Class Person<br />
<br />
Private m_strName as String<br />
Private m_strNumber as String<br />
Private m_colPlacesLived as Collection<br />
<br />
Public Property P_Name as String<br />
Get<br />
Return m_strName<br />
Set (ByVal value as String)<br />
m_strName = value<br />
End Property<br />
...<br />
Public Property PlacesLived as Collection<br />
Get<br />
Return m_colPlacesLived<br />
Set (ByVal value as Collection)<br />
m_colPlacesLived.add(value)<br />
End Property<br />
<br />
End Class<br />
<br />
Public Class PlacesLived<br />
<br />
Private m_strAddress as String<br />
...<br />
Public Property PL_Address as String<br />
Get<br />
Return m_strAddress<br />
Set (ByVal value as String)<br />
m_strAddress = value<br />
End Property<br />
<br />
End Class<br />
That is the basic structure of what I am trying to do and when I set the values I do this.
<br />
Dim objPerson as new Person<br />
Dim objPlacesLived as PlacesLived<br />
<br />
objPerson.P_Name = "Name"<br />
<br />
For i as Integer = 0 to DataTable.Rows.Count - 1<br />
objPlacesLived = new PlacesLived<br />
<br />
objPlacesLived.PL_Address = "Address"<br />
<br />
objPerson.PlacesLived = objPlacesLived<br />
Next<br />
Any ideas??
Cleako
|
|
|
|
|
Your mixing types. your property is typed as a 'collection' but when setting a value to the property your using a 'placeslived'
make the property readonly return the collection
make a method to add a new placeslived to the collection.
|
|
|
|
|
cleako wrote: Set (ByVal value as Collection)
m_colPlacesLived.add(value)
You're adding a collection to m_colPlacesLived. Is this what you mean to do ? Or do you mean to make m_colPlacesLived = value ?
cleako wrote: objPerson.PlacesLived = objPlacesLived
Is PlacedLived a collection class ?
I'd expect you to just have a get accessor, because it returns a collection, which you can then call Add on, or Clear, or anything else. The setter is only needed if you want to pass an entire collection in. And if you want that, you don't want to use Add, you want to use =.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|