Forum: Visual Basic 4 / 5 / 6 Oct 3rd, 2005 |
| Replies: 1 Views: 3,951 I believe there is limited security in msaccess for what you are wanting. I don't believe it is with ado or dao though I think it is ADOX (Microsoft ADO Ext 2.8 For DDL and Security ). YOu would do... |
Forum: Visual Basic 4 / 5 / 6 Oct 3rd, 2005 |
| Replies: 6 Views: 1,821 Text1.Text = MonthName(Month(DateAdd("m", -1, Date))) |
Forum: Visual Basic 4 / 5 / 6 Sep 24th, 2005 |
| Replies: 10 Views: 3,637 the dtpicker seems to work best for most of my applications. |
Forum: Visual Basic 4 / 5 / 6 Sep 22nd, 2005 |
| Replies: 6 Views: 1,821 It looks like in the CopyMemory function the ByVal is the length of the data passed from destination to source or vice versa. Check this value debug.print byVal in the function to see what it... |
Forum: Visual Basic 4 / 5 / 6 Sep 22nd, 2005 |
| Replies: 2 Views: 1,265 use instr.
if instr(text1.text, "little") Then variable = yes |
Forum: Visual Basic 4 / 5 / 6 Sep 22nd, 2005 |
| Replies: 2 Views: 8,374 shell "cmd.exe /c"
will get you to the comamnd prompt. Shellexecute will give you more options and handling and return values, but if you just need the prompt, there you go. |
Forum: Visual Basic 4 / 5 / 6 Sep 22nd, 2005 |
| Replies: 10 Views: 4,960 mediaplayer1.filename="intro.mpg
should be changed to
mediaplayer1.filename=app.path & "\" & "intro.mpg"
I ctually tried it. It might be my version of windows media player, but this did not... |
Forum: Visual Basic 4 / 5 / 6 Sep 20th, 2005 |
| Replies: 5 Views: 3,906 it will go whereever the cursor is located. If you want someone to push a button and have "COLOR" input in a text box, you must first change the focus.
Private Sub Command1_Click()
text1.setfocus... |
Forum: Visual Basic 4 / 5 / 6 Sep 20th, 2005 |
| Replies: 6 Views: 1,821 What object are you using for the ip information. There should be a method there to calculate the bytes used. |
Forum: Visual Basic 4 / 5 / 6 Sep 18th, 2005 |
| Replies: 3 Views: 3,434 Option Explicit
Public Sub Command1_Click()
If Command1.Caption = "SAVE" Then
Command1.Caption = "ADD"
'Put Save commands here
Else
Command1.Caption = "SAVE"
'put ADD COMMOND BUTTON Commands... |
Forum: Visual Basic 4 / 5 / 6 Sep 15th, 2005 |
| Replies: 3 Views: 3,434 Public Sub Command1_Click()
if command1.caption = "SAVE" Then
command1.caption = "ADD COMMOND BUTTON"
'Put Save commands here
else
Command1.caption ="SAVE"
'put ADD COMMOND BUTTON Commands here... |
Forum: Visual Basic 4 / 5 / 6 Sep 15th, 2005 |
| Replies: 3 Views: 3,403 Dim Conn As ADODB.Connection
Dim rs As ADODB.Recordset
Set Conn = New ADODB.Connection
Set rs = New ADODB.Recordset
conn.open {Connection String}
rs.Open "Select * FROM TABLE;", Conn, 3, 3, 1
... |
Forum: Visual Basic 4 / 5 / 6 Sep 14th, 2005 |
| Replies: 4 Views: 4,222 public sub command1_Click()
Me.PrintForm
End Sub |
Forum: Visual Basic 4 / 5 / 6 Sep 13th, 2005 |
| Replies: 1 Views: 6,375 Create a new colum for the revisions part numbers. I would also add a last modified date colum as well. Then the sql query will allow use to differentiate the two types of numbers.
Or you could... |
Forum: Visual Basic 4 / 5 / 6 Sep 13th, 2005 |
| Replies: 4 Views: 4,222 Put either a command button, image, or make it a hot key and teh use Me.PrintForm to print the form. |
Forum: Visual Basic 4 / 5 / 6 Sep 12th, 2005 |
| Replies: 10 Views: 4,960 for just pictures, you can add textbox or variable values to the picture object to load a new picture if you use the correct format.
image1.picture =loadpicture("c:\vbrox.bmp")
image1.picture... |
Forum: Visual Basic 4 / 5 / 6 Sep 9th, 2005 |
| Replies: 2 Views: 1,967 make sure the stretch property is set correctly |
Forum: Visual Basic 4 / 5 / 6 Sep 9th, 2005 |
| Replies: 3 Views: 4,945 Debug.Print TextWidth("XXXXX"), TextWidth("iiiii") |
Forum: Visual Basic 4 / 5 / 6 Sep 6th, 2005 |
| Replies: 2 Views: 1,913 it would help to have the function name.
basically you would use the function name and pass the variables to it.
{FunctionName} lptr,iwrite |
Forum: Visual Basic 4 / 5 / 6 Aug 31st, 2005 |
| Replies: 1 Views: 1,866 public Sub Die()
dim f as form
for f in forms
unload f
next
end
end sub |
Forum: Visual Basic 4 / 5 / 6 Aug 31st, 2005 |
| Replies: 7 Views: 6,340 the languages are very similar witha few differences. Try planet-source-code.com |
Forum: Visual Basic 4 / 5 / 6 Aug 24th, 2005 |
| Replies: 4 Views: 10,221 What program are you wanting it to "click" on?
What operating system?
Will you feed it the co-ords for the clicks or will it be prerecorded?
While moving the mouse to a particular location... |
Forum: Visual Basic 4 / 5 / 6 Aug 23rd, 2005 |
| Replies: 2 Views: 2,371 I would probably shell it out.
shell "net.exe time \\server" |
Forum: Visual Basic 4 / 5 / 6 Aug 21st, 2005 |
| Replies: 2 Views: 4,823 That's correct. Global Variables defined in a mod use the global prefix. Global Variables defined on a form use public. That is about the only difference. |
Forum: Visual Basic 4 / 5 / 6 Aug 21st, 2005 |
| Replies: 1 Views: 2,646 update inventory set location=NULL where x=y |
Forum: Visual Basic 4 / 5 / 6 Aug 20th, 2005 |
| Replies: 1 Views: 1,990 ctrl-Z will undo most operations in a text editor. other wise you will need to create an array to hold the previous changed information until the users are satisfied and submit the text. |
Forum: Visual Basic 4 / 5 / 6 Aug 20th, 2005 |
| Replies: 4 Views: 2,399 an Undo operation on what? |
Forum: Visual Basic 4 / 5 / 6 Aug 19th, 2005 |
| Replies: 4 Views: 2,399 Thats' a large project. If you are working on this alone and are fairly competent in vb you are looking at about six to twelve months programming.
Start with the database and the reports. Gather... |
Forum: Visual Basic 4 / 5 / 6 Aug 18th, 2005 |
| Replies: 11 Views: 3,510 Well you have your choice. You can use VB to create any program you want, from games to complete hospital accounting systems to virus, to security analizers. Decide what you want to create, and we... |
Forum: Visual Basic 4 / 5 / 6 Aug 18th, 2005 |
| Replies: 3 Views: 29,812 try using this instead.
it will unload all forms and then end all processes.
dim f as Form
for each f in forms
unload F
next
end |
Forum: Visual Basic 4 / 5 / 6 Aug 18th, 2005 |
| Replies: 5 Views: 4,530 txtMN.Text = dtaMember.RecordSource = "SELECT Name FROM Mem_Mast WHERE ((Mem_Code) = '" & txtMC.Text & "');" = ' " & txtMC.text & " ' ) ; "
needs to be seperated
dtamember.Recordsource = "SELECT... |
Forum: Visual Basic 4 / 5 / 6 Aug 17th, 2005 |
| Replies: 5 Views: 4,530 post the sub where you are getting the error and we'll see if we can figure it out. |
Forum: Visual Basic 4 / 5 / 6 Aug 17th, 2005 |
| Replies: 4 Views: 3,646 free component call vbsendmail.dll makes sending mail with attachments very easy.
Ithink you can find it here.
http://www.freevbcode.com/ShowCode.Asp?ID=109
Public Function... |
Forum: Visual Basic 4 / 5 / 6 Aug 17th, 2005 |
| Replies: 4 Views: 2,094 might try form2.setfocus . POst the source and we'll see what we can do. |
Forum: Visual Basic 4 / 5 / 6 Aug 16th, 2005 |
| Replies: 2 Views: 1,896 Try using different widths of lines |
Forum: Visual Basic 4 / 5 / 6 Aug 16th, 2005 |
| Replies: 4 Views: 3,646 Ar eyou still needing help? |
Forum: Visual Basic 4 / 5 / 6 Aug 16th, 2005 |
| Replies: 1 Views: 2,418 www.planet-source-code.com |
Forum: Visual Basic 4 / 5 / 6 Aug 16th, 2005 |
| Replies: 6 Views: 4,622 try using the text1.change() event That way it is automatically change whenever you type something
public Sub text1_change()
form1.label1.caption = trim(text1.text)
end sub |
Forum: Visual Basic 4 / 5 / 6 Aug 16th, 2005 |
| Replies: 3 Views: 12,979 same as using ado and ms access change the connection string :
"Driver={SQL Server};Server=BMC;Address=xxx.xxx.xxx.xxx:1433;Network=DBMSSOCN;Database=dbPos;Uid=SQL;Pwd=sql" |
Forum: Visual Basic 4 / 5 / 6 Aug 16th, 2005 |
| Replies: 3 Views: 8,364 put this on a form. six command buttons one row on top,one textbox below buttons,one webbrowser window below textbox
Private Sub Command1_Click()
WebBrowser1.Navigate Trim(Text1.Text)
End Sub... |