Click here to Skip to main content
15,927,947 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalcreating an employee database need code help please Pin
crshbrn1425-Apr-05 15:03
crshbrn1425-Apr-05 15:03 
GeneralRe: creating an employee database need code help please Pin
Dave Kreskowiak25-Apr-05 17:10
mveDave Kreskowiak25-Apr-05 17:10 
GeneralOpen two tables in one form Pin
msnick25-Apr-05 14:53
msnick25-Apr-05 14:53 
GeneralRe: Open two tables in one form Pin
Mike the Red27-Apr-05 9:33
Mike the Red27-Apr-05 9:33 
GeneralRe: Open two tables in one form Pin
msnick28-Apr-05 15:32
msnick28-Apr-05 15:32 
GeneralHi!!!Want some help!!! Pin
shekkk25-Apr-05 12:41
shekkk25-Apr-05 12:41 
GeneralRe: Hi!!!Want some help!!! Pin
Len Miller25-Apr-05 15:32
Len Miller25-Apr-05 15:32 
GeneralCalculating the latidude and longitude of an area Pin
Martin@captivasystems25-Apr-05 10:16
Martin@captivasystems25-Apr-05 10:16 
I’m trying to get the lowlatitude, highlatidude and lowlongitude, highlongitude of an area given the zip code and the radius in miles.
This is what I’ve done but I think it is incorrect.
Anyone has a better calculation?
Thanks,
Martin


Sub SetRadius(ByVal iRadius, ByVal iZip)
Dim rs, SQL, iStartlat, iStartlong, LatRange, LongRange
SQL = "SELECT LATITUDE, LONGITUDE FROM ZIP_CODES WHERE ZIP = '" & iZip & "'"
Dim strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\PROJECT\zipbase.mdb"
Dim Conn = New OleDbConnection(strConn)
Conn.open()
Dim cmdSelect As New OleDbCommand(SQL, Conn)
Dim dr As OleDbDataReader
dr = cmdSelect.ExecuteReader()
While dr.Read()
iStartlat = dr(0)
iStartlong = dr(1)
End While
Conn.Close()
LatRange = iRadius / ((6076 / 5280) * 60)
LongRange = iRadius / (((Cos(CDbl(iStartlat * 3.141592653589 / 180)) * 6076) / 5280) * 60)
LowLatitude = iStartlat - LatRange
HighLatitude = iStartlat + LatRange
LowLongitude = iStartlong - LongRange
HighLongitude = iStartlong + LongRange
end sub
GeneralRe: Calculating the latidude and longitude of an area Pin
msnick25-Apr-05 15:52
msnick25-Apr-05 15:52 
GeneralRe: Calculating the latidude and longitude of an area Pin
Martin@captivasystems26-Apr-05 3:55
Martin@captivasystems26-Apr-05 3:55 
GeneralRe: Calculating the latidude and longitude of an area Pin
Martin@captivasystems26-Apr-05 11:52
Martin@captivasystems26-Apr-05 11:52 
GeneralRe: Calculating the latidude and longitude of an area Pin
msnick26-Apr-05 13:25
msnick26-Apr-05 13:25 
GeneralRe: Calculating the latidude and longitude of an area Pin
Martin@captivasystems27-Apr-05 3:14
Martin@captivasystems27-Apr-05 3:14 
Generalretrieving remote xml data Pin
Coreo25-Apr-05 6:30
Coreo25-Apr-05 6:30 
GeneralRe: retrieving remote xml data Pin
rudy.net26-Apr-05 18:42
rudy.net26-Apr-05 18:42 
GeneralRe: retrieving remote xml data Pin
Coreo27-Apr-05 14:36
Coreo27-Apr-05 14:36 
GeneralProblems with DSOFile 2.0 Pin
cad_guru25-Apr-05 6:00
cad_guru25-Apr-05 6:00 
GeneralRe: Problems with DSOFile 2.0 Pin
Dave Kreskowiak25-Apr-05 6:40
mveDave Kreskowiak25-Apr-05 6:40 
GeneralRe: Problems with DSOFile 2.0 Pin
cad_guru25-Apr-05 6:49
cad_guru25-Apr-05 6:49 
GeneralSleep and wake up Mode. Pin
Mkanchha25-Apr-05 5:00
Mkanchha25-Apr-05 5:00 
Generalapplication config Pin
Lisana25-Apr-05 4:27
Lisana25-Apr-05 4:27 
GeneralRe: application config Pin
Colin Angus Mackay25-Apr-05 6:29
Colin Angus Mackay25-Apr-05 6:29 
GeneralRe: application config Pin
Lisana25-Apr-05 7:59
Lisana25-Apr-05 7:59 
GeneralRe: application config Pin
Len Miller25-Apr-05 9:51
Len Miller25-Apr-05 9:51 
GeneralSecuring VB.NET applications Pin
Member 190968425-Apr-05 1:02
Member 190968425-Apr-05 1:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.