vba x 200

12,155 Topics

Member Avatar for
Member Avatar for dlayante

I have created a DLL files using C#.... How can i use it in Visual Basic 6.0? Please help me with this project...can you give me codes for it or step by step procedure THANK YOU!!!!!!!!!!!!

Member Avatar for hkdani
0
7K
Member Avatar for newbie26

hey.. can someone help me here?? how can i get the second to the last and the last record in the notepad?? then, i will subtract those values and insert into the database. tnx. im using vb6 and mysql.

Member Avatar for hkdani
0
144
Member Avatar for kbj123

am using vb6 and ms office 2007 on Windows 7 professional platform i wrote code as below dim db as database dim rs as recordset dim ws as workspace Private Sub Form_Load() Set db = OpenDatabase(app.path & "\Contacts.mdb") Set rs = db.OpenRecordset("Info", dbOpenTable) End Sub Now, when i run my …

Member Avatar for hkdani
0
290
Member Avatar for Amiet Mhaske

Hello guys, I am new to vb programming. Can anyone tell me how to access command button of one form onto another? I have one mdiParent form on which i have command button "PRINT" and "Add New Client", I want to disable Print button, when i clicked on "Add New …

Member Avatar for Amiet Mhaske
0
195
Member Avatar for bcogan6502

I have been fighting with this all day and looked at so much documentation and other posts I think I am going blind. I can't find an answer that works. I am trying to read through a set of records until the reference number changes and then return to the …

Member Avatar for BitBlt
0
786
Member Avatar for king_saqib

HI TO EVERY HELP ME! HOW CAN I CAPTURE DISPLAT (PRINT SVREEN IN VB BY USING VB CODE AND HOW I CAN SAVE I AS .png FORMATE PLEASE PLEASE HELP ME I WILL BE VERY THANKFUL OF YOU

Member Avatar for Member #917609
0
110
Member Avatar for nick_hunk91

I am preparing a Business Management System, in which the user enters the details of purchase and sale, where item number identifies the stock availability. Suppose i purchased item1 as Business Stock, it was not in the stock, it is updated in table 4. But if it exists, i gave …

Member Avatar for BitBlt
0
1K
Member Avatar for Amiet Mhaske

Hello guys, I am new to programming. I've recently started working on vb6. Guys, can you tell me what are .dll files and what is the use of them???

Member Avatar for thines01
0
141
Member Avatar for uzidon

All right, the solution for this question might be awkwardly simple, but I'm totally lost and confused on this. I have created a Windows Form Application in Visual C++ 2010 Ultimate and included some resource files (BMP Images) in Form1.resX. For example, one of them is picture1.bmp. I have a …

Member Avatar for uzidon
0
1K
Member Avatar for siraero

Hi daniweb first of all, sry my english. I have a problem with at update code, I was hoping that U can help me, im new to this. i have a code where i get an id from another page, from update.aspx?id=1 up to 6 ATM. my code works fine …

Member Avatar for Sarama2030
0
220
Member Avatar for lisheen

Hi Again All, I have a Datasource which I query, works fine but when I package the application it can't find the datasource (which is an mdb file) how do I set the datasource to always look in the application path. I have tried [ICODE]str = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= App.Path + …

Member Avatar for Jason2726
0
284
Member Avatar for Shodow

here i have 2 listbox i already have the code for the selected item moving right and moving left but i don't know how to move all of the listbox1 to listbox2 by just click >> or listbox2 to listbox1 <<

Member Avatar for Shodow
0
215
Member Avatar for gurushankar

Hi All, I have two excel sheets "A" and "B" In "A" I have list of sheets present in B When i click on a cell(where worksheet name is present) I have to navigated to the particular sheet. I have done code, but when the workbook is already open, it …

0
61
Member Avatar for Nastadon

Alright, so I'm making a blackjack game, and I forgot how to make it randomly display a card. I know what it is in VB so I tried something like that, I also tried something else, but it didn't work either. When the form loads I have this so it …

0
58
Member Avatar for henpecked1

I'm looking for a line (or more) of VBA that would tell me how to set the "required" property of a field to "No" instead of "Yes" Just so you have the context, I'm helping someone write a module that imports data into an Access database. Of course, sometimes a …

Member Avatar for henpecked1
0
202
Member Avatar for StephNicolaou

Hi, I have a simple query I've used again and again previously, but in this case it's telling me that it is too complex. I've output this sql string into a message and cannot see any problems with the syntax, I'm completely baffled with this one so any help would …

Member Avatar for StephNicolaou
0
93
Member Avatar for Netcode

Hello everyone. Am designing a web application based on human resources. I need to perform a search which would give results as a dropdown as the searchstring is being typed( as seen in photo one) to include the photo/image of the person and little detailed description like the Name, Department …

Member Avatar for Netcode
-1
101
Member Avatar for Pointblank5600

Hey all. Im just learning VB and i want to make a login screen for my program. there will be two textboxes and a command button. When you click the command button it checks the information with whats in the database and if its correct loads the next form and …

Member Avatar for Auton710
0
448
Member Avatar for maggoteer

I'm having some trouble sharing my application to other PC users. I have tried to Build my application and Publish my application into a folder, zip it, and put it on my website for people to download, but when they try to run the setup file it gives an error …

Member Avatar for GeekByChoiCe
0
138
Member Avatar for rocket100

Hey, I am very stuck on a vb assignment. It entails basic image processing, multiple forms and arrays. If you can do this kind of stuff, please could I send you whats needed and get some help on this.

Member Avatar for WaltP
-1
138
Member Avatar for Thermalnuke

Alright, I am having a problem with an error message that comes up, i am pretty sure the code is alright, but it might be the code, i have tried re-installing VB (Visual Basic 2010). i have tried a few things on the web and nothing. here is the error …

Member Avatar for Thermalnuke
0
126
Member Avatar for horsetamer

Hello I am having some trouble here, I created a Microsoft Access dataset (.accdb) It is being used with some listboxes, comboboxes etc. The problem is when I publish the whole thing the datasets do not publish along with it and my program opens but there are not values. Anyone …

Member Avatar for hkdani
0
623
Member Avatar for lbgladson

I have the following classes for a bank account. I am hoping someone can point me to where the problems in my code are. When I run the program my output is: account1 Inheritance_Part1.SavingsAccount Interest rate: 0.00% Interest earned: $25.00 Balance: $25.00 account2 Inheritance_Part1.CheckingAccount Transaction fee: $1.00 Balance: $80.00 Attempting …

0
78
Member Avatar for dre-logics

I use Visual Basic 2008 with Mysql I have a table article with the following data : Articlenb - Productcode - amount 1 - XXL - 1 2 - 12 - 1 3 - 10 - 1 4 - 1.5 - 1 5 - 7 - 1 6 - 4 …

Member Avatar for adam_k
0
205
Member Avatar for Rizvi404

one from a datetime picker n the other is a text field.. Am using this query.. dim arrtime as datetime arrtime = (Ccur(txttime.value)+( Ccur(txtdot.text)).. It shows type mismatch error...

Member Avatar for WaltP
0
138
Member Avatar for SI THU

Anybody help me please, how can i run bat file code in vb6. can i run it. thanks,for read

Member Avatar for kain_mcbride
0
151
Member Avatar for alencar.expro

(This code returns ERROR_INVALID_PARAMETER) Option Explicit Private Type DISPLAY_DEVICE cb As Long DeviceName As String * 32 DeviceString As String * 128 StateFlags As Long DeviceID As String * 128 DeviceKey As String * 128 End Type Private Type POINTL x As Long y As Long End Type Private Enum …

0
402
Member Avatar for adriedotnet

Hi i'm a VB beginner. I'm creating a Restaurant Ordering System using VB8. I'm using a check box, buttons, and a text box. This system work when the customers check the desired menu. The first button is "Calculate" button, which is used to calculate all the check menu and displayed …

0
63
Member Avatar for fmasroor

Using microsoft visual c++ 2010. Everything is screwing up. I want to take an input file, write to an output file, and use the lines of the input file as strings. But... On previous run, I didn't have that last printf line. So everytime I run it, it just prints …

Member Avatar for Schol-R-LEA
0
357
Member Avatar for Human2.0

Greeting fellow Humans, I'm trying to "[I]comb merge[/I]" (if any thing as such) bunch of Excel files. There are 2 type of Excel workbook: A & B Both has a column called : [I]Location ID[/I] [U]These are the step I think the prog should do [/U]: Promp user to select …

Member Avatar for Human2.0
0
631
Member Avatar for Amiet Mhaske

Hi, guys. I am working on vb project, which will save client database. I've done the coding of ADD, NEW, SAVE, EDIT button. Now, I am stuck at DELETE button. When I delete any particular client then I want my client_id (it's a column in my access database) should get …

Member Avatar for Amiet Mhaske
0
127
Member Avatar for Kayy

Hello everyone, I've been coding small demos to improve my programming skills, and I've run into a problem getting indices of list items which I have been unable to figure out. I'm using C# 4.0, and Visual Studio Express 2010. I've tried to use the IndexOf(T) method, but intellisense doesn't …

Member Avatar for Kayy
0
182
Member Avatar for vspadmanabhan

Hi, I have to create an executable to put in windows task bar to read foxpro dbf file and update mysql table in the web server by checking new records in the dbf file comparing the unique key in both table whenever the internet connection is available in the desktop …

Member Avatar for Member #120589
0
337
Member Avatar for pkmleo

I am unable to run batch file that is located in mapped network drive using System.Diagnostics.Process in VB.Net. I get: [CODE]'<batchfilename>.bat' is not recognized as an internal or external command, operable program or batch file. Press any key to continue... [/CODE] I get the same error when navigate to the …

0
134
Member Avatar for gurushankar

Hi Guys, I have written a macro, when i try to save it is asking me to save it in different format (my excel file is in xlsx format). Is there any way i can save my excel file in xls or xlsx along with macro.. in xlsm format macro …

Member Avatar for BitBlt
0
58
Member Avatar for pingpongplaya

I'm creating an Excel spreadsheet from within Microsoft Access. This is declared at the top: [CODE] Public OpenExcel As Object Public OpenSheet As Object [/CODE] This is in my sub-routine: [CODE] Set OpenExcel = CreateObject("Excel.Application") OpenExcel.Visible = False With OpenExcel .Application.DisplayAlerts = False .Workbooks.Add .ActiveWindow.DisplayGridlines = False .ActiveWorkbook.SaveAs FileName:="" & …

Member Avatar for pingpongplaya
0
964
Member Avatar for twistercool

What is a good code for adding data in adodb, wherein if a particular data is already present , for example in a text-box,it would give a warning like dulpicate data

Member Avatar for twistercool
0
119
Member Avatar for gravitywell

Hey, I dont know much about macros or about scripting, but I've got a project to do for work and I looked up some codes and spliced them togeather to fit my specific purpose. I'm pulling pictures out of folders and sticking them in an excel file. You'll understand what …

Member Avatar for AndreRet
0
128
Member Avatar for stanleyekpunobi

hi am a newbie in programming please can someone help me with how i can search a datagridview with datetimepicker using the .value property.tanks.am using access 2007 as databse

0
48
Member Avatar for Rizvi404

Am using date time picker control in vb 6 to show time but when i try to store that in a access database it stores the default can somebody help me make it modify to store only time...

Member Avatar for hkdani
0
153
Member Avatar for Happytree

Hi everyone, sorry to bother. I am new in Visual Basic and I am using this in my final year project as a GUI. My system is an attendance tracking system which requires student to scan their rfid tags to make sure their attendance is taken. A lecturer can view …

0
54
Member Avatar for Rizvi404

With rstp If NewRecord = True Then .AddNew !slno_ID = txtslno.Text !DepartureDate = txtdate.Value !Departuretime = txttime.Text !PlaceofVisit = cmbpov.Text !ApproximateDistance = txtdistance.Text !NoofDaysofStay = Txtstay.Text !BusinessExpected = txtbusiness.Text !Remarks = txtremarks.Text .Update .Requery End With arrtime = (CCur(txttime.Text) + CCur(txtdot.Text)) fm = (CCur(txtdistance.Text) * CCur(txtmr.Text)) arrtime1 = arrtime + …

Member Avatar for debasisdas
0
142
Member Avatar for skatamatic

My boss asked me to write a PID class to control a motor today. No big deal, except that the deadline is tommorow evening. My calculus is rusty, and my vb6 is probably worse (which is the language I am to use). Anyone have a good understanding of a PID …

Member Avatar for skatamatic
0
3K
Member Avatar for Minami

I was given a task of creating a lucky draw program. 1.Total numbers of accounts are 00001 to 99999. 2.But only 131 accounts will be chosen. 3.3 sections - 1 account for 1 car, 20 accounts for 20 iPhone, 10 accounts for 10 Samsung 4.Galaxy & 100 accounts for $100 …

Member Avatar for WaltP
0
227
Member Avatar for morph214
Member Avatar for m1234ike

Hello Daniweb, I am writing a program to execute the command prompt command "getmac /v >> MACLIST.txt" using a Visual Basic form, including: 2 buttons(getmac and filter the text file) , 2 textboxes (alternate text file name and user name), and two radiobuttons (default text file name or custom name). …

Member Avatar for m1234ike
0
423
Member Avatar for zack_falcon

I've designed a C# game that makes use of an Access .mdb database file to store variables. The basic idea is that one of the players will 'host' a game, and the other player will join said game, by connecting to the database, reading and writing items into the database. …

0
99
Member Avatar for Sameyison

Hello Folks, I am trying to create a Crystal report using data from two Access 2007 tables but it only displays the data from the first table only. when I do same with Access 2003, I am successful but it does not work in access 2007. Please help me to …

Member Avatar for BitBlt
0
120
Member Avatar for Member #925360

Alright, I have a Textbox which I want to display some text, but when the user clicks on it, it should clear so he can write what he wants.

Member Avatar for Member #925360
0
1K
Member Avatar for violette

I have five sheets named 'Yearly,Q1,Q2,Q3,Q4'. currently my code only update one worksheet at one time into the mySql database. i want it to get all worksheets to be done at one go. i've tried to implement 'For loop' but it just run on the active worksheet only. is there …

Member Avatar for violette
0
441

The End.