11,868 Topics

Member Avatar for
Member Avatar for dev_kc

The control is not going to EditGoto,its is coming out of the whole sub part on report click btn Public Sub Create_Report() WordDocument.EditGoto "CurrentDate" WordDocument.Insert Format(Now, "mmm,d,yyyy") End Sub Public Sub EditGoto(inNm As String) owordapp.Selection.Goto What:=wdGoToBookmark, Name:=inNm End Sub Please help me with this:S

0
65
Member Avatar for jaz215

Hi, I am redoing a VB6 application. In the print function the app determines which printer to use, I want to change this to let the OS choose which printer to use is this doable?

Member Avatar for jaz215
0
104
Member Avatar for TylerSBreton

Hi Guys, I'm getting on odd error on compilation, "Procedure too large to compile". The reason I say it's odd is that I know for a fact the procedure is not too large to compile. We have daily builds and others are able to pull the source down and compile, …

Member Avatar for vb5prgrmr
0
117
Member Avatar for Riptr

I am writing a program that allows for people to answer simple questions on Capital Cities of the world. The main program works flawlessly, but I decided to add in a new function that records the user's answers to a question if they get it incorrect and posts it in …

Member Avatar for TylerSBreton
0
1K
Member Avatar for firoz.raj

i want if requisition no is already there message should come.requistion no is already there .Here is the code what i have written.i don't know why it is not working.any help would be greately appreciated. [code] Private Sub btSave_Click() Dim row As Integer, bEdit As Boolean Dim StrSql As String, …

Member Avatar for hkdani
0
129
Member Avatar for JP Romano

Hi - I have two MS Access forms - 1) WorkItems 2) MyItems WorkItems is the main form, and MyItems simply runs a query against a list of NT ID's and statuses to provide the user with a list of his/her incomplete workitems. What I'd like to do is have …

Member Avatar for JP Romano
0
103
Member Avatar for ryan311

all i want is change all the record in my table if the pcarrier="Credit" but my problem is only one data have been changes. . [code] Set rs = New ADODB.Recordset rs.Open "Select * from Soldto where cno='" & Combo1.Text & "'", cn, adOpenKeyset, adLockPessimistic If rs!pcarrier = "Credit" Then …

Member Avatar for vb5prgrmr
0
149
Member Avatar for kamae

Can anyone help me how to do this? It will test if it is valid or invalid. Input Output name_123 Valid name123 Valid 123name invalid 123_name invalid this will test if the variable name declared is valid or invalid.

Member Avatar for vb5prgrmr
0
86
Member Avatar for RahulV

[code=visualbasic] Private Declare Function Function_Name Lib "user32" () As Datatype [/code] I've found such lines used in many VB6 projects and tutorials. What is it? What actually is this used for? Are there more such function? How to find out more such function/properties? A detail explanation will be helpful and …

Member Avatar for vb5prgrmr
0
5K
Member Avatar for firoz.raj

can anybody tell me why i am getting type mismatch error in checkinput function.Here is the code what i have written.error is generatiing from bold line. [code] Private Function CheckInput() As Boolean Dim row As Integer, itemCode() As Integer 'At first always Test for Empty TextBoxes If Combo1.Text = "Dept …

Member Avatar for vb5prgrmr
0
177
Member Avatar for firoz.raj

Can anyone tell me .why i am getting error item cannot be found in the collection corresponding to the requested name or ordinal.error is generating on bold line.Here is the code what i have written. [code=vb] Private Sub Command1_Click() y = MsgBox("do you add this record", vbYesNo + vbQuestion, "message") …

Member Avatar for vb5prgrmr
0
102
Member Avatar for baby_1

it means the new exe file is a copy of old file ( but its neccessory to see content of old exe file and save the texbox not use filecopy in vb6)

Member Avatar for cguan_77
0
69
Member Avatar for winrawr

I've tried everything, and I just can't get my program to compile in visual basic. Someone tell me what I'm doing wrong? see attached image, are the includes in the wrong spot or WAT!??!?!

Member Avatar for winrawr
0
814
Member Avatar for oscarresonable

Hello everyone, I have a project that the user can create/customize a report in a form,.. And in my project I have a form where user can choose a multiple tables, and also user can choose which fields they put in the report form..............., but the main problem is only …

Member Avatar for vb5prgrmr
0
103
Member Avatar for oscarresonable

Hello everyone, I have a project that the user can create/customize a report in a form,.. And in my project I have a form where user can choose a multiple tables, and also user can choose which fields they put in the report form..............., but the main problem is only …

0
57
Member Avatar for Henry Schubel

I'm not even sure where to post this, but since I wrote the code in VB6, maybe here... This is really more of an Outlook problem, but what I'm doing is programatically creating email. Here's the problem. My VB6/Access application is installed on a Vista machine, and the host machine …

Member Avatar for Henry Schubel
0
112
Member Avatar for nitu_thakkar
Member Avatar for nitu_thakkar
0
146
Member Avatar for RahulV

Hi, How can i open a PDF file in Form instead of using a shell to open it? Also i want to select some text in the opened PDF file and store it in a variable. Thank you.

Member Avatar for SlyMaelstrom
0
644
Member Avatar for ryan311

i have error to my code in the bold word! [code] Set rs = New ADODB.Recordset Set rs1 = New ADODB.Recordset Set rs2 = New ADODB.Recordset rs.Open "Select * from temp where pcode='" & txtEdit.Text & "'", cn, adOpenKeyset, adLockPessimistic rs1.Open "Select * from product where brandname='" & txtEdit.Text & …

Member Avatar for vb5prgrmr
0
336
Member Avatar for kamae

Hallo guys, it is me again. I need help how to create a simple backup file by just copying a file to another folder. Look at my code. [ICODE]Private Sub mnuBackup_Click() Dim SourceFile, DestinationFile As String On Error GoTo FileCopyFailed SourceFile = "D:\MyWorks\data\facility.mdb" DestinationFile = "D:\MyWorks\backup\facility.mdb" [COLOR="Red"]FileCopy SourceFile, DestinationFile[/COLOR] MsgBox …

Member Avatar for vb5prgrmr
0
97
Member Avatar for ryan311

im using adodb connection. . please help how can i load the data save to my table in database name SUPPLIER in mshflexgrid using textmatrix? thanks. . more power for daniweb.

Member Avatar for abu taher
0
73
Member Avatar for ryan311

it is possible? if the user in the running time, click the close button or the X button that we can see in the top of the form and then if the user click the close or X button message box will appear "you cannot log out"? how can i …

Member Avatar for vb5prgrmr
0
116
Member Avatar for SlyMaelstrom

This actually pertains to Visual Basic for Application in Access 2003, but I imagine that this forum should yield accurate information for a simple query such as this. Naturally, the event in the title does not exist. Not for the pre-defined text box control in VB, anyway. However, it is …

Member Avatar for SlyMaelstrom
0
154
Member Avatar for jaasaria

hi guyzz im using crystal report for my application... i have problem in making formula in details parts of my report.. i access two tables in making the details, but my problem is to display the amount by subtracting or adding the details amount.(for getting the running balance.) plss see …

Member Avatar for jaasaria
0
135
Member Avatar for PinoyDev

Good day.! I have created a menu editor with a name File. This file menu contains a popup menu which is(back-up database,restore database,logout). With this popup, i want to add an icon on the left sides all of them. Does any one there can help me pls. this is how …

Member Avatar for PinoyDev
0
464
Member Avatar for RahulV

Consider this VB6 source code [code=visualbasic] Public bc As Boolean Dim x As Long Private Sub Command1_Click() If bc Then MsgBox x Exit Sub Else Call exec End If End Sub Private Sub Command2_Click() bc = True Call Command1_Click End Sub Private Sub Form_Load() bc = False End Sub Public …

Member Avatar for hkdani
0
170
Member Avatar for dev_kc

I am not able to create object for word doc,this is the code i wrote,the object sets to nothing,when i run the code If blnChkFirst = False Then Set owordapp = CreateObject("Word.Applicatiion") Else Set owordapp = GetObject(, "Word.Applicatiion") If Err.Number <> 0 Then Set [COLOR="Red"]owordapp[/COLOR] = CreateObject("Word.Applicatiion") owordapp.Visible = True …

Member Avatar for cguan_77
0
85
Member Avatar for baby_1

Hello I wanta to create a program that send data between two computer with phone like( such as hyperterminal jobs). i created some programs that send data between each other only by a wire (com1) now can any one tell me how can i send a file between two computer …

Member Avatar for baby_1
0
84
Member Avatar for Elmismo

I try to connect by ODBC 3.51 and I get connection and I can get data from MySQL database and show it in my VB 2008 Express Edition, but when I want to AddNew or Update something it gives me an error property "Item" is "ReadOnly" (about my rs). This …

Member Avatar for vb5prgrmr
0
150
Member Avatar for fancy2

Hello, I need to create a Basketball Simulator Which requires two teams of five players each. Each player will have an offensive rank and [B]defensive rank (8-10)[/B] and a [B]shooting percentage of (55-80). [/B]The rankds rankds are randomly generated and displayed on the form. [COLOR="Red"]This part I have accomplished.[/COLOR] Once …

0
46

The End.