내 코드는 지금까지입니다. 마지막 줄에 "compend end of statement"라는 컴파일 오류가 발생합니다.select 문의 결과를 변수에 저장하려면 어떻게합니까?
Dim strSql As String
Dim groupId As String
strSql = "Select ID from RevenueGroup where description = '" & ListO.Value & "'"
groupId = CurrentProject.Connection.Execute strSql
ListO.Value가 올바른 값을 반환하는지 확인하십시오. – madatanic