|
|
|
и снова smalldatetime...
|
|||
|---|---|---|---|
|
#18+
в тексте адп хочу выполнить запрос, который добавляет записи в таблицу dbo.tDataSession в поля fkGroup , fkSession, fkPredmet, fkTypeSdachi, DateSdachi где StrGroupIndex, groupind, StrPkPredmet, StrTypeSdachi-переменные, а Me.пДата-поле на форме пишу так: insert into dbo.tDataSession (fkGroup , fkSession, fkPredmet, fkTypeSdachi, DateSdachi) values (" + CStr(StrGroupIndex) + "," + CStr(groupind) + ", " + CStr(StrPkPredmet) + ", " + CStr(StrTypeSdachi) + "," & FormatSpDate(Me.пДата) где FormatSpDate-функция Public Function FormatSpDate(ByVal parDate As Date, _ Optional bSQL As Boolean = False) As String If bSQL Then FormatSpDate = Format$(parDate, "'yyyymmdd'") Else FormatSpDate = Format$(parDate, "\#mm\/dd\/yyyy\#") End If End Function но выходит такая ошибка: The name '#11' is not permitted in this context. Only constants? expressions? or variables allowed here. Column names are not permitted. кто знает помогите ... Уточняю адп! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.11.2003, 10:53 |
|
||
|
|

start [/forum/topic.php?desktop=1&fid=45&tid=1677989]: |
0ms |
get settings: |
7ms |
get forum list: |
17ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
24ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
41ms |
get tp. blocked users: |
1ms |
| others: | 216ms |
| total: | 321ms |

| 0 / 0 |
