Search Results

Showing results 1 to 33 of 33
Search took 0.01 seconds.
Search: Posts Made By: ProfessorPC ; Forum: Visual Basic 4 / 5 / 6 and child forums
Forum: Visual Basic 4 / 5 / 6 Sep 24th, 2009
Replies: 14
Views: 993
Posted By ProfessorPC
from the question. i take they want it to work if any of the conditions = a b or c. if thats the way it works then yes the first if statement will work
Forum: Visual Basic 4 / 5 / 6 Sep 24th, 2009
Replies: 14
Views: 993
Posted By ProfessorPC
yes that will work the way you want.
Forum: Visual Basic 4 / 5 / 6 Aug 25th, 2009
Replies: 27
Views: 1,771
Posted By ProfessorPC
you grab its text.
Forum: Visual Basic 4 / 5 / 6 Aug 24th, 2009
Replies: 27
Views: 1,771
Posted By ProfessorPC
"UPDATE product_line set qtydb= qtydb + " & qtydba & " WHERE product_id = " & productid & "",
Forum: Visual Basic 4 / 5 / 6 Aug 19th, 2009
Replies: 27
Views: 1,771
Posted By ProfessorPC
ok we need to set it where the productid = the productid

"UPDATE product_line set qtydb=" & qtydba & " WHERE product_id = " & productid & "",
Forum: Visual Basic 4 / 5 / 6 Aug 18th, 2009
Replies: 5
Views: 525
Posted By ProfessorPC
Forum: Visual Basic 4 / 5 / 6 Aug 18th, 2009
Replies: 11
Views: 850
Posted By ProfessorPC
in your query you are only pulling from one table. i guess its throwing me off. what are the fields from the other table you are using? can you test your query in your db's query analyser?
Forum: Visual Basic 4 / 5 / 6 Aug 17th, 2009
Replies: 11
Views: 850
Posted By ProfessorPC
if you are pulling data from one table only why use the join?

"SELECT UserID, Role FROM tblRoles where UserID = '" & roleUserID & "'"
Forum: Visual Basic 4 / 5 / 6 Aug 17th, 2009
Replies: 5
Views: 525
Posted By ProfessorPC
scanners do the same thing as a keyboard. read from the barcode and places the text in the program. thats about it
Forum: Visual Basic 4 / 5 / 6 Aug 17th, 2009
Replies: 11
Views: 850
Posted By ProfessorPC
try this

"WHERE [tblUserAccount].[UserID] = '" & roleUserID & "'"


single quotes around roleuserid
Forum: Visual Basic 4 / 5 / 6 Aug 17th, 2009
Replies: 27
Views: 1,771
Posted By ProfessorPC
okay lets see what we can do ;) lol. so you get the data from the product id. you are updating the table with the values in txt boxes? if that is the way your are working it lets try this.
...
Forum: Visual Basic 4 / 5 / 6 Aug 13th, 2009
Replies: 27
Views: 1,771
Posted By ProfessorPC
what are you using to connect to the DB? i am guessing something like this:


Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset

Set cn = New ADODB.Connection
cn.Open 'connection string...
Forum: Visual Basic 4 / 5 / 6 Aug 12th, 2009
Replies: 2
Views: 310
Posted By ProfessorPC
cant step through and see where the hangup is?
Forum: Visual Basic 4 / 5 / 6 Aug 12th, 2009
Replies: 4
Views: 584
Posted By ProfessorPC
once you have your rs setup you can do this

Do Until rs.EOF
Combo1.AddItem rs!Field
rs.MoveNext
Loop
Forum: Visual Basic 4 / 5 / 6 Aug 12th, 2009
Replies: 1
Views: 429
Posted By ProfessorPC
that redline means that you are exceeding the report size. in your designer if you will widen from 7.5 to 8.5 you should be okay.
and that bottom is because the active reports is an evaluation copy.
Forum: Visual Basic 4 / 5 / 6 Jul 30th, 2009
Replies: 27
Views: 1,771
Posted By ProfessorPC
if it is a specific item you are looking for why search through mulitple records?


sSQL = "Select fields from table where id = " & productid & "


then you can run your do while.
Forum: Visual Basic 4 / 5 / 6 Jun 17th, 2009
Replies: 10
Views: 919
Posted By ProfessorPC
sorry for the delay in getting back. had other projects that had to be complete.
thanks for all of your help.
not sure why i had the problem in the first place because that code is working now....
Forum: Visual Basic 4 / 5 / 6 May 30th, 2009
Replies: 10
Views: 919
Posted By ProfessorPC
after looking at my posts i see how it is confusing.
what i need is to set the text of the cbo to the salerep name (works already). I also want to set the rphid to the text. so when the user...
Forum: Visual Basic 4 / 5 / 6 May 29th, 2009
Replies: 10
Views: 919
Posted By ProfessorPC
this is connected to sql 2000 db. it is not solved as of yet.
Forum: Visual Basic 4 / 5 / 6 May 29th, 2009
Replies: 10
Views: 919
Posted By ProfessorPC
the with statement contains about 150 lines of code so i didnt post all of it. the .salesrep is the id that is set in the table to associate the salesperson to the product. The .salesrep is pulling...
Forum: Visual Basic 4 / 5 / 6 May 28th, 2009
Replies: 10
Views: 919
Posted By ProfessorPC
I am having a small problem locating any information on this little problem on the net so I am coming here for help AGAIN.
I have a VB6 project that has a combobox. This is needing to display data...
Forum: Visual Basic 4 / 5 / 6 Feb 4th, 2009
Replies: 3
Views: 483
Posted By ProfessorPC
sorry that should be

checkstock = ( val(rs!pstock) - cint(textbox2.text))
Forum: Visual Basic 4 / 5 / 6 Feb 4th, 2009
Replies: 11
Views: 732
Posted By ProfessorPC
you should see a button that says solved
Forum: Visual Basic 4 / 5 / 6 Feb 4th, 2009
Replies: 11
Views: 732
Posted By ProfessorPC
did this problem get solved? if so mark it as solved so if others run into a problem then can see the solution and create another thread for a different problem
Forum: Visual Basic 4 / 5 / 6 Feb 4th, 2009
Replies: 11
Views: 732
Posted By ProfessorPC
sorry about that take out the first order by srno and that should fix it

rs.Open "select srno, productname, qty, unit from mrtemp where req_no = " & strlistrequest & " order by srno", con,...
Forum: Visual Basic 4 / 5 / 6 Feb 4th, 2009
Replies: 11
Views: 732
Posted By ProfessorPC
try changing the query to

rs.Open "select srno, productname, qty, unit from mrtemp order by srno where req_no=" & strlistrequest & " order by srno", con, adOpenDynamic, adLockOptimistic
Forum: Visual Basic 4 / 5 / 6 Feb 4th, 2009
Replies: 11
Views: 732
Posted By ProfessorPC
is there an error number with that?
Forum: Visual Basic 4 / 5 / 6 Feb 4th, 2009
Replies: 11
Views: 732
Posted By ProfessorPC
need to add & " after strlistrequest
Forum: Visual Basic 4 / 5 / 6 Feb 4th, 2009
Replies: 2
Views: 544
Posted By ProfessorPC
what type of DB are you connecting to?
Forum: Visual Basic 4 / 5 / 6 Feb 4th, 2009
Replies: 3
Views: 483
Posted By ProfessorPC
it looks correct for checking if the value is less then 0 or if it is null.
if you want to check the value from the text box then you can add another if statement. also you may want to change if the...
Forum: Visual Basic 4 / 5 / 6 Feb 4th, 2009
Replies: 8
Views: 1,500
Posted By ProfessorPC
go here. http://www.vb6.us/tutorials/formating-dates-and-times-vb6
it gives different date formats and examples
Forum: Visual Basic 4 / 5 / 6 Jan 20th, 2009
Replies: 1
Solved: Timeout Expired
Views: 751
Posted By ProfessorPC
Found my problem. I was passing 4 params. I found an article on Parameter Sniffers in 2005 SQL. Once I added another set or params with an existing value it all worked great.


@param1 int,...
Forum: Visual Basic 4 / 5 / 6 Jan 20th, 2009
Replies: 1
Solved: Timeout Expired
Views: 751
Posted By ProfessorPC
I have a Stored Procedure that is called through VB6 for a report. The Reports were working great until yesterday. Now all of the reports that use that sp are timing out. The default time is set to...
Showing results 1 to 33 of 33

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC