Current location: Hot Scripts Forums » Advertising Forums » Job Offers & Assistance » I have a visual basic problem I cannot solve. I need to hire someone to do this work


I have a visual basic problem I cannot solve. I need to hire someone to do this work

Reply
  #1 (permalink)  
Old 02-10-05, 09:46 AM
chrismonroe10 chrismonroe10 is offline
New Member
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
I have a visual basic problem I cannot solve. I need to hire someone to do this work

I have a visual basic problem I cannot solve. I need to hire someone to do this work / code

project. Need the below to work with the date and text fields so that it will do the VB 6 sort

routine without a problem. Basically need two or three snippets to do the function. Can you write

this type of code. file is too bit to attach zipfile of the current source. I also have the ocx files

if you need them as well and can email them, I can send you those separately as they are an install from the last

person who had this job.

Data grid is the one on the form: outpatient.frm on the outpatient log tab. I need a sort routine

for the date field and for a text field using two command button on the same form. I cannot get

it to sort by anything other than the recid (family id).

I have references if you want to make sure I write and send payment correcty. Please take a look

at this as soon as you can. questions? 203 394 6529 please leave your number if you get

voicemail. It’s a snippet or two and the lady downstairs needs this as soon as possible so we can

get the data collected. Chris Monroe

================================================== =====

The below works good for sorting by the autonumber field (FAMILYID) but its not good for sorting

by date, need to have this copied to sort by the date field which is REF_DT. I substituted

REF_DT for FAMILYID below and it just errors out with the error - improper use of variable. The

view for adopatients is VWOUTPATIENT and i've tried to use ascending on that sql view on the date

but that does not work. How can i change recid to something else so it will function.


Private Sub Command1_Click()
' ***** simple sort button *********
Call SortRtn(0, Me.grdOutP.Columns(Me.grdOutP.Col).DataField, Me.grdOutP.Col, "ADOPATIENTS")
' **** end *****
End Sub


Public Sub SortRtn(intSortMode As Integer, strColname As String, intCol As Integer, strAdo As

String)
' *************** sort by the autonumber field ************
'A Public Sort Routine
'intSortMode determine sort method 0 for ascending 1 for descending
'strColName determines the column in the grid to sort by
'intCol is the column number
'strAdo determines which grid to sort
Dim recid As Long 'What record are we currently on
Select Case strAdo
Case "ADOPATIENTS"
recid = FRMOUTPATIENT.adoOutP.Recordset.Fields("FAMILYID")
If intSortMode = 0 Then
FRMOUTPATIENT.adoOutP.Recordset.Sort = strColname
Else
FRMOUTPATIENT.adoOutP.Recordset.Sort = strColname & " DESC"
End If
FRMOUTPATIENT.adoOutP.Recordset.Find "FAMILYID = " & recid
End Select
' **** end *****
End Sub

================================================== =====
Reply With Quote
  #2 (permalink)  
Old 02-10-05, 12:35 PM
superprogrammer superprogrammer is offline
Newbie Coder
 
Join Date: Nov 2003
Location: INDIA
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Hi
Please contact me at my email
I can help you in this regard
San
Reply With Quote
  #3 (permalink)  
Old 02-11-05, 11:24 AM
rdprogrammer rdprogrammer is offline
Coding Addict
 
Join Date: Aug 2004
Location: Tulsa, Oklahoma
Posts: 250
Thanks: 0
Thanked 0 Times in 0 Posts
i am not skilled in VB6, but if you want to update your script into the new VB.Net, so as it can be used also in ASP.Net i could do that for you, let me know,

richard
__________________
Contact me directly at:
AIM: RDProgrammer
MSN: RDProgrammer@hotmail.com
Email 1: Richard@RDProgrammer.com
Email 2: RDProgrammer@hotmail.com
Website: RDProgrammer.com
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Art Nexus seeking PHP programmers TheArtNexus Job Offers & Assistance 5 02-26-08 03:08 AM
visual basic problem I cannot solve: data grid : need vb programmer for hire chrismonroe10 Visual Basic 1 03-25-05 06:42 PM
How to use Visual Basic? mhs12grade1992 Visual Basic 4 02-27-05 07:03 PM
More info SLAYER18 Job Offers & Assistance 1 01-17-05 05:06 AM
Visual Basic 6 bug? whoknow Visual Basic 1 08-27-04 06:53 PM


All times are GMT -5. The time now is 12:08 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.