vba x 200

12,155 Topics

Member Avatar for
Member Avatar for honnysingh

I using following codes to add images in my project & its working properly in winxp but not working properly in win7 platform. please help me to find the problem. If you any other better codes to add images to MS-Access databae then please suggest. thanks Public Sub FillFields() If …

Member Avatar for jhai_salvador
0
107
Member Avatar for lorens5
Member Avatar for Member #754645

[COLOR="Green"][CODE]Private Sub Text1_Change() Text1 = Format(Text1, "#,###") Text1.SelStart = Len(Text1.Text) End Sub[/CODE] This code formats the textbox value to include a comma for every 3 digits to the left. Problem is, it doesn't allow to type decimals like 3,000,000.50 What can I do?[/COLOR]

Member Avatar for AndreRet
0
6K
Member Avatar for mahela

Im using listbox with style = 1-checkbox. "project.mdb" is the database name "goods" is the table name. "tabno" and "tabid" are fields in the table. dim d as database dim table as recordset dim b as integer dim c as integer Private Sub Form_Load() Set d = OpenDatabase(App.Path & "\" …

Member Avatar for AndreRet
0
175
Member Avatar for mbrown1

I am a huge rookie when it comes to VB, I have written a small macro to open a report in excel, set the column widths, and extract data to a spread sheet. The main issue I have is that I have to manually open each file as the macro …

Member Avatar for mbrown1
0
328
Member Avatar for bprosic

Please, I need help. I have an aplication in Visual Basic 2010 and database created in Access 2003. It's very simple database, it has two tables named 'doctors' and 'patients'. I want to itegrate databse into VB. I used Wizzard to integrate. Now I have Binding Navigator (with buttons Next, …

Member Avatar for Icone
0
339
Member Avatar for jeanray

I have a small player built on a frame. At form_load, I set the form width/height equal to the size of the design (two fixed size images on top of each other. The form has no border, no control (dock, min, max, exit). When running, the user wants to move …

Member Avatar for Darkpiss
0
3K
Member Avatar for prathiyus

I need to write equivalent 'c' code for vb code......... ImageScreen.Graphics.Pixel(i,j) = cmy(0,0,0) how to write a function for cmy in c language

Member Avatar for Adak
0
87
Member Avatar for tet3828

I have two forms that share data between eachother. 1. In Designer view of Form2 I establish a public variable. public bool isMyFormValid 2. When I attempt to access the variable in Form1 like this... if (Form2.isMyFormValid = true) { //do this} C Sharp no likey... I get this message: …

Member Avatar for tet3828
0
203
Member Avatar for honeybee2090

i want to filter items from list view , i want to remove every kind of items from it but these 202.38.95.66:1080 67.191.234.52:1158 125.88.125.201:1080 65.30.204.106:1188 83.183.96.123:45712 72.74.41.97:46331 69.42.126.106:46486 69.42.126.106:46486 60.241.65.32:47501 60.241.65.32:47501 173.16.5.49:47708 173.16.5.49:47708 93.176.11.69:48293 93.176.11.69:48293 71.114.46.27:48505 i just want to show these items in list

Member Avatar for AndreRet
0
1K
Member Avatar for mahela

In my project I have a datagrid with 2 columns namely "codes" and "description".there are details under code and description columns.I wanted to print the datagrid.please help me.

Member Avatar for mahela
0
98
Member Avatar for udaraps

i hv the same problem with [B]VB 6.0[/B] & im using [B]MS ACCESS[/B] for the database. Pls help me to code my program as im unable to pass the values display in the text boxes to the data grid in the same form thnx in advance regards uda

Member Avatar for akgs
0
959
Member Avatar for locsin

Greetings! Is anybody know how to set textboxes in visual basic 6 in multi-languages. I want my textbox accept both english and arabic. Thank you in advance!

Member Avatar for akgs
0
804
Member Avatar for Mr Gates

Here's an example, but Visual basic gives me an error when trying to run it. Say I wanted to ask the user for their name, then display it like: "Hello there" strName By the way, my CDs finally came Friday, so I have VB .NET, but this was done in …

Member Avatar for akgs
0
7K
Member Avatar for lerkei

does anyone knows how to input letters and disable inputting an integer or number?... plsss help...tnx

Member Avatar for akgs
0
3K
Member Avatar for trevor.hood.921

Hi, I'm Trevor Hood. I'm an aspiring game developer from California trying to make sense of some intermediate to advanced topics in Visual Basic, XNA and Silverlight. I am also interested in learning more about: * Theory and Practice of Game Design * Game Engines * HTML/CSS/PHP/JavaScript * Eiffel Programming …

Member Avatar for AndreRet
0
251
Member Avatar for mahela

I use following codes in my project. Dim cnCheck As ADODB.Connection Set cnCheck = New ADODB.Connection Dim rsCheck As ADODB.Recordset Set rsCheck = New ADODB.Recordset cnCheck.Open "provider = microsoft.jet.oledb.4.0;persist security info=false;data source = " & App.Path & "\MyDatabaseNameHere.mdb" cnCheck.CursorLocation = adUseClient rsCheck.Open "SELECT * FROM yourtablenamehere WHERE id=" & txtid.text …

Member Avatar for mahela
0
80
Member Avatar for Ramesh Sagar

Hi, My query is: On clicking the button i get a form where i can enter the text in text fields namely, HEADER, NOTES and FOOTER. The entered data is saved. But when i open the fresh form, the previously enterd data will be displayed. Could you please help me …

Member Avatar for AndreRet
0
209
Member Avatar for mahela

In my project I used a datagrid and Adodc.datasource of datagrid is Adodc.there in Adodc properties I select "use connection string".I used Microsoft jet 4.0 OLE DB provider and select the connection path to the database as "F:\project\super.mdb". Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\project\super.mdb the path sould be valid when runing the program in …

Member Avatar for AndreRet
0
489
Member Avatar for rumanoid

I am making a program for school where the user has to choose a chapter to learn. when the user has choosen one i want to use a text file where all the words are in: for example In the program you choose chapter 5 then the program has to …

Member Avatar for Reverend Jim
0
384
Member Avatar for mahela

I made a vb project and there i use a database as "super.mdb".My database is located at mydocuments. So i used the path(c:\mydocuments\super.mdb)in forms of my project to connect the database with my vb project. After making my project as a setup file, I installed it in my system and …

Member Avatar for AndreRet
0
1K
Member Avatar for Fiziana

Required to write a VBscript to perform simple calculations on the overall rating of item. How to calculate if all responses are 5s, then the overall rating is 100% or if all responses are 1s, the overall rating is 20% only by using VB script. Please make sure that all …

Member Avatar for G_Waddell
-1
201
Member Avatar for samuel.akpan.1238

I am a final year of student of a Polytechnic in Nigeria and into Software. I want develop a software using either Visual Basic 6 or Visual Basic.Net I dont know wat exactly to even develop, I'm just confuss and need help.

Member Avatar for samuel.akpan.1238
0
64
Member Avatar for pardeep3dec

Dear Experts,can we make dll in turbo c and use that dll in vb 6.0. Actually i have a program in c and it has so many constant 3 dimensional array.I have to use some API which can not be used in turbo c so i am planning to make …

Member Avatar for Schol-R-LEA
0
293
Member Avatar for Helianthus

I have been struggling with this for 4 days - Please help. I have attached a copy of my code with the hope that someone here can give me some insight as to what I am missing. (This is a homework assignment, so please keep that in mind. I am …

Member Avatar for AndreRet
1
360
Member Avatar for cdsanand

i need to store data from msflexgrid to msasscess. in one record 6 rows and 5 coloums of flexgrid data to be stored in msaccess. columns header contains "particulars", nos, gweight, nweight, "remars" is necessary to use array pls let me know the codes thanks

Member Avatar for AndreRet
0
46
Member Avatar for darkscythe69

Below I have two subs, once RearrangeDecks is run, it will call moveToEnd(p1stat,p2stat). I get p1stat and p2stat from a different sub used earlier. However when I run it, it gives me back an error saying "**Arguments not optional**" as well ass highlighting the first offset word in the sub …

Member Avatar for AndreRet
0
241
Member Avatar for karthik82vk

Hi, I am creating an vb application that compares two data's pasted in two mshflexgrid. The data's will be copied from the source to the flexgrid control using clipboard. I have coded all the needed things. I just want to remove the unwanted empty cells that are displayed in the …

Member Avatar for BitBlt
0
339
Member Avatar for SpectateSwamp

Lately I have been using the program name to control the program execution. If the name has "random" in it then random. If it has "mix" in it then it plays / displays a mix of text and video - pictures - audio. The 3 program prompts are set based …

Member Avatar for SpectateSwamp
0
218
Member Avatar for Ancient Dragon

I have a copy of Visual Studio 6.0 just sitting in a box in my desk at home and have not used it for several years now because its too old. Any ideas how to make something useful with it or what to do with it, except toss it in …

Member Avatar for BigPaw
0
125
Member Avatar for Steph333

Hi, In my game of Battleships, I am trying right now to randomly generate ship placement for the computer. I have made the program generate one particular spot in the grid using code like this: While CPlacementX > 5 GenerateCoords() End While For Each label In Me.Controls If label.Tag = …

Member Avatar for Reverend Jim
0
1K
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to stick a cmd window/process that i called from my vb form to the bottom of the form like the picture: (below) ![form2](/attachments/large/3/form2.png "form2") And so where ever i move the form the cmd windows will also follow. Also is …

Member Avatar for artemix22
0
348
Member Avatar for anisha.silva

hi i am trying to build an application coded in C# and i has using MSFileIO = Microsoft.VisualBasic.FileIO; and giving an error "Error 1 The type or namespace name 'FileIO' does not exist in the namespace 'Microsoft.VisualBasic' (are you missing an assembly reference?) UZipDotNet " how do i add the …

Member Avatar for nmaillet
0
301
Member Avatar for ccschaad

hello, I am trying to make an excel spreed sheet that will always be adding more option buttons in sets of six. Each Set of six will be doing basicly the same thing just one row below the last. Is there any way to assign a option button to call …

Member Avatar for ccschaad
0
122
Member Avatar for UV1995

Hi all! I need help with Visual Basic I am trying to build a program in which the user types a question into a text box. Then the program looks for that question in a database (access database to be specific) and returns the appropriate answer from the database. I …

Member Avatar for dimara
0
1K
Member Avatar for jaydipzatakiya10

hi,iam using mditab control in vb8 for making browser.please give me go,back,and another button code.

Member Avatar for nmaillet
0
91
Member Avatar for ashvyas

I want 1 dialog box which is having a login username and Password field. ANd it must have 12 buttons. whenever i click on any button, it must open 1 Excel sheet associated with it. Just want 1 skeleton code.

Member Avatar for kRod
0
184
Member Avatar for Blank808
Member Avatar for Jx_Man
0
171
Member Avatar for dnyaneshwari.phansekar

The employees of our company are using an India Cash Program application that displays records and data according to search criteria and also genertes reports.It is built using VB6.0,sql server 2005 and crystal report 8.5 .The application is used daily from an .exe file that is installed on all computers.The …

Member Avatar for Nutster
0
119
Member Avatar for mahela

In vb6 I installed in my computer it has microsoft windows common controls 5.0(sp2).I want to know how to have full row select option in listview component.how can i select full row at listview.in listview properties there is no fullrowselection check box.it has only 5 chechboxes.

Member Avatar for mahela
0
2K
Member Avatar for forjustincase

How can I connect my msacces database and use SQL query command like "Select Field FROM Table Where Field1 = foo AND Field2 = foo2" in Visual basic 6 and display the query result to a textbox.

Member Avatar for AndreRet
0
3K
Member Avatar for Member #1004120

Option Explicit Dim mem As Double, ans As Double, desi As Boolean, n As Double Dim no1 As Double, no2 As Double, fact As Integer, i As Integer Dim operation As Boolean, op As String, res As Double, index As Integer Private Sub cmd1divide_Click() n = Val(Label1.Caption) If n = …

Member Avatar for BitBlt
0
164
Member Avatar for newbie26

hey..can somebody help me? how can i make this work? one pc has a vb6 application which added a record in the database (mysql) and when he/she had already added a record, a pop up message will show to the another pc that a new record has been added to …

Member Avatar for AndreRet
0
113
Member Avatar for krunal1986

hi, i have just migrated from CR8.5 to CR9. now i want to run/display Crystal Report 9 on client machine without installing it there. so, which .dll required for this situation? thanks, krunal

Member Avatar for apurvac
0
4K
Member Avatar for bkhindri

I am trying to use an IF statement to enable/disable command buttons; however, I get the following error message "Run Time Error '424': Object Required". The "cmdDeptStoresMC.Enabled=True" is highlighted in yellow when I run the code. Please assist. Below is my code: Sub Check_AccessRights() Dim X As String Dim Y …

Member Avatar for aronhugos
0
772
Member Avatar for bosigosean

William is interested in numbers. His friend Mary has been programming using Visual Basic and has told William about the Radom Number facility that the programming language provides. William never takes anything for granted and says to Mary: “I wonder how good this random number generator is. Suppose you write …

Member Avatar for itismypushkin
0
101
Member Avatar for mahela

I have two forms as form1 and form2 in my project.in form1 it has textbox as txtid. I take n=txtid.text in from1.then how can I use the same value of n (got at form1) applicable at from2.

Member Avatar for AndreRet
0
1K
Member Avatar for yat862

hi, i have a problem of Index was outside the bounds of the array. i don't understand how to amend the existing solution in my case. anyone could help me? the message error is System.IndexOutOfRangeException {"Index was outside the bounds of the array. below is the code & the error …

Member Avatar for AndreRet
0
2K
Member Avatar for arie92

i have 5 form that with 4 form to enter input and the last form is to make a calculation and display the output.But the problem is,i cannot get the calculation and the output to be played because the last form does not attach the input that i have enter …

Member Avatar for Jx_Man
-1
275
Member Avatar for Skate Bart

I'm using a MSHFlexGrid (fgdVehicle) to input data from a database ( via a recordset (rsVehicle) ). You can either enter the data into the database in two ways : 1. From the database application 2. From a form. The problem is present in the second method. There are specific …

Member Avatar for AndreRet
0
609

The End.