iyi günler
Left([tblStudents].[FirstName],1) & Left([tblStudents].[LastName],1) AS Student
bu cümle parçası ismin ilk harfi ile soyismin ilk harfini birleştiriyor
ismin ilk harfi ile soyismin ilk harfi arasına boşluk ekleyemedim
& " " &
'" & " " & "'
yazdım olmadı ne yazmam lazım
şimdi "AD" Oluyor ben "A D" olsun istiyorum
Left([tblStudents].[FirstName],1) & " " & Left([tblStudents].[LastName],1) AS Student
şeklinde yazdığınızda olması gerek.
maalesef olmuyor cünlenin tamamı bu
strSQLs = "SELECT itblClassStudents.ClassID, itblClassStudents.ClassDate, tblLocations.ClassRoom, " _
& "DLookUp('[LookUp24Hour]','tblTimes','[LookUpScheduleTime]=' & Replace(CStr([itblClassStudents].[StartTime]),',','.')) AS StartTime, " _
& "DLookUp('[LookUp24Hour]','tblTimes','[LookUpScheduleTime]=' & Replace(CStr([itblClassStudents].[EndTime]),',','.')) AS EndTime, " _
& "tblLevel.Level, tblLevel.Code, Left([tblStudents].[FirstName],5) & Left([tblStudents].[LastName],5) AS Student " _
& "FROM tblLocations INNER JOIN ((tblCourse INNER JOIN tblLevel ON tblCourse.Level = tblLevel.LevelID) " _
& "INNER JOIN (itblClassStudents INNER JOIN tblStudents ON itblClassStudents.StudentID = tblStudents.StudentID) " _
& "ON tblCourse.CourseID = itblClassStudents.CourseID) ON tblLocations.LocationID = itblClassStudents.LocationID " _
& "ORDER BY itblClassStudents.ClassDate;"
dediğiniz gibi yazarsam cümle hata verip kırmızı oluyor
strSQLs = "SELECT itblClassStudents.ClassID, itblClassStudents.ClassDate, tblLocations.ClassRoom, " _
& "DLookUp('[LookUp24Hour]','tblTimes','[LookUpScheduleTime]=' & Replace(CStr([itblClassStudents].[StartTime]),',','.')) AS StartTime, " _
& "DLookUp('[LookUp24Hour]','tblTimes','[LookUpScheduleTime]=' & Replace(CStr([itblClassStudents].[EndTime]),',','.')) AS EndTime, " _
& "tblLevel.Level, tblLevel.Code, Left([tblStudents].[FirstName],5) & ' ' & Left([tblStudents].[LastName],5) AS Student " _
& "FROM tblLocations INNER JOIN ((tblCourse INNER JOIN tblLevel ON tblCourse.Level = tblLevel.LevelID) " _
& "INNER JOIN (itblClassStudents INNER JOIN tblStudents ON itblClassStudents.StudentID = tblStudents.StudentID) " _
& "ON tblCourse.CourseID = itblClassStudents.CourseID) ON tblLocations.LocationID = itblClassStudents.LocationID " _
& "ORDER BY itblClassStudents.ClassDate;"
şeklinde dener misiniz? & ' ' & yada & "" "" & sorgu içinde tek tırnak yada çift çift tırnak kullanarak deneyin
teşekkürler berduş bu oldu
& "" "" &