如何从数据库中选择描述?

时间:2015-09-02 15:08:27

标签: ms-access select textbox sql-like

我正在尝试使用基于文本框的控件源字段(列表框)从数据库中选择一些描述(txtUIDMaszyny)

LIKE 'MSZ'

但我没有结果。例如,如果我手动键入=[Forms]![formMaszynyObszar1]![listListaMaszyn].[Column](1) ,它将返回值。

我做错了什么?

txtUIDMaszyny还从其他表单收集信息,但它显示正常。该文本框的代码:

// Find whichever user
$user = \App\User::find(1);

// Convert the string of subjects from a string to an array
$subjectIds = explode(',', $user->subjects);

// Load all subjects which match the ids within the subjectIds array
$subjects = \App\Subjects::whereIn($subjectIds)->get();

// Do something with the subjects
foreach($subjects as $subject) {
   // Output the subject name 
   var_dump($subject->name);
}

0 个答案:

没有答案