|
|
|
и снова 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?fid=45&gotonew=1&tid=1677989]: |
0ms |
get settings: |
9ms |
get forum list: |
19ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
177ms |
get topic data: |
12ms |
get first new msg: |
7ms |
get forum data: |
3ms |
get page messages: |
58ms |
get tp. blocked users: |
2ms |
| others: | 247ms |
| total: | 542ms |

| 0 / 0 |
