|
-
Jul 6th, 2004, 12:46 PM
#1
Thread Starter
Lively Member
view
Hi All:
I have two tables: event and event_times.
Event is connected to event_times with left outer join. When I run my view, I get result set as if the two tables are inner joined. What am I doing wrong? This is on sql 2000.
Thanks
SELECT dbo.events.event_title
FROM dbo.events LEFT OUTER JOIN
dbo.event_times ON dbo.events.event_id = dbo.event_times.event_id
-
Jul 6th, 2004, 03:38 PM
#2
This actually should go in the Databases forum, but anyways...
What results does this bring back?
Code:
SELECT
events.event_id,
events.event_title,
event_times.event_id,
event_times.event_time
FROM
events
LEFT OUTER JOIN
event_times ON events.event_id = event_times.event_id
If you include other fields you may be able to really see what the
issue may be.
Ex.
Code:
events event_times
Id Title Id Time
123 Crash 123 12:00
124 Stop <null>
125 Start 125 1:00
Query results
123 Crash 12:00
124 Stop <null>
125 Start 1:00
HTH
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 6th, 2004, 03:46 PM
#3
Thread Starter
Lively Member
resolved:Left outter join
Hi :
Thanks for getting back to me. Actually I was able to solve this connecting all the tables to left outer joins. However, I have a another question for you.
How can I determine if a certain file exist. For example:
SaveFile = App.Path & "\Rpts" & "\RoomSetup.xls"
If SaveFile <> "" Then
Kill SaveFile 'Delete the previous file.
End I
This works as long as there is a file,if there is no file, it errors out.
Thanks
-
Jul 6th, 2004, 04:31 PM
#4
VB Code:
Option Explicit
Private Const OF_EXIST = &H4000
Private Const OFS_MAXPATHNAME = 128
Private Type OFSTRUCT
cBytes As Byte
fFixedDisk As Byte
nErrCode As Integer
Reserved1 As Integer
Reserved2 As Integer
szPathName(OFS_MAXPATHNAME) As Byte
End Type
Private Declare Function OpenFile Lib "kernel32" (ByVal lpFileName As String, lpReOpenBuff As OFSTRUCT, ByVal wStyle As Long) As Long
Public Function FileExists(ByVal Fname As String) As Long
Dim lRetVal As Long
Dim OfSt As OFSTRUCT
lRetVal = OpenFile(Fname, OfSt, OF_EXIST)
If lRetVal = 1 Then
FileExists = 1
Else
FileExists = 0
End If
End Function
Enjoy.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 7th, 2004, 08:55 AM
#5
Thread Starter
Lively Member
Resolved:Delete File
Hi RobDog888:
Thanks
-
Jul 7th, 2004, 10:10 AM
#6
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|